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 :)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire