Hello, i am new to laravel and I'm trying to make an application for my upcomming web about programming (mostly tutorials) and i have a problem with router/controller/model/view/whatever, when i go to (It is in czech language, so tutorialy is not a typo but a czech version of tutorials) http://myurl/tutorialy, it works just fine and shows the list of tutorial categories, but when i go to http://myurl/tutorialy/python(for example), only blank screen shows and i have no idea, where the problem is.
https://gist.github.com/JacobCZ/18a921531f9f51c972d4
Please, try to help me, I don't know, what exactly to send to you, but if you need any more informations, please tell me...
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