everyone. I can't 2 link urls with to 2 different controllers :(
Route::group([
'namespace' => 'Page',
'as' => 'page.',
], function() use ($lang)
{
Route::get ('/{path}-{page_id}', ['uses' => 'PageCategoryController@show', 'as' => 'category']);
Route::get ('/{path?}/{alias}-{record_id}.html', ['uses' => 'PageItemController@show', 'as' => 'item']);
});
When you are going to url
/test-3
/test-3.html
you have the same result, but why?
uri GET {path}-{page_id}
as frontend::page.category
Please, help me :)
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lOnpoS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire