How to divide categories and pages in laravel?

Good evening. How to divide categories and pages. I add links to the menu, for example phones (a category), about us (this page). The transition /{page} as it is necessary to determine what it is. Tell me how can I do that?
July 9th 19 at 13:28
2 answers
July 9th 19 at 13:30
Use the standard routing
https://laravel.com/docs/5.2/routing
or are You talking about something else?
July 9th 19 at 13:32
Can be divided like this:
Route::get('category/{category_id}', 'CategoriesController@index');
Route::get('page/{'s page_id}', 'PagesController@show');
And how when you enter the address of the route will determine the type? :D - Arthur_McCullough70 commented on July 9th 19 at 13:35
Here is all defined! The prefix "category" and "page"... - Annalise commented on July 9th 19 at 13:38

Find more questions by tags LaravelPHP