Try using Eloquent
$categories = Category::all(); // Returns all categories
$category = Category::find(1)->get(); // Returns category with an id of 1
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
Double check that the spelling of your 'layout' matches the actual file, as well as the location of the file.
Yes, everything matches. Also, the problem appears even with the
return "Some text";
so i guess the error will be somewhere else...
Why don't you use
Route::controller('tutorialy', 'TutorialController');
I think it's better than do each route separately.
I'm new to laravel, so i didnt know how that works. Now i read about it and it may help, thanks...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community