Answer the question
In order to leave comments, you need to log in
How to make it so that the route without a parameter would not display on the 404 page?
I'm still trying to figure out the routing system.
There are two such routes
Route::resource('portfolio','Portfolio\PortfoliosController',['only' =>['index','show']]);
Route::get('portfolio/cat/{alias}',['uses' => 'Portfolio\[email protected]', 'as'=>'portfolioCat'])->where('alias','[\w-]+');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question