Support the ongoing development of Laravel.io →
Requests Database Views
Last updated 2 years ago.
0

Try using Eloquent

$categories = Category::all(); // Returns all categories
$category = Category::find(1)->get(); // Returns category with an id of 1
Last updated 2 years ago.
0

Thanks, but i don't think this is teh problem, when i deleted averything from the controller and replaced it with

return "Something";

it didn't work either... Also, the DB:: works for other actions

Last updated 2 years ago.
0

Double check that the spelling of your 'layout' matches the actual file, as well as the location of the file.

Last updated 2 years ago.
0

Yes, everything matches. Also, the problem appears even with the

return "Some text";

so i guess the error will be somewhere else...

Last updated 2 years ago.
0

Why don't you use

Route::controller('tutorialy', 'TutorialController');

I think it's better than do each route separately.

Last updated 2 years ago.
0

I'm new to laravel, so i didnt know how that works. Now i read about it and it may help, thanks...

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

JacobCZ jacobcz Joined 11 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.