Support the ongoing development of Laravel.io →
Requests Database Views

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...

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.

© 2025 Laravel.io - All rights reserved.