in my web.php I have the next code:
Route::group(['prefix' => $prefix, 'middleware'=> 'language'], function() use ($prefix) {
Route::get(Lang::get('routes.page',[], $prefix) , 'PagesController@index')->name($prefix.'_page');
Route::get(Lang::get('routes.article',[], $prefix) , 'ArticlesController@index')->name($prefix.'_article');
When I'm going to routes.page all it's working.
When I'm going to routes.article I'm getting error 404.
I cleared: route cache, view cache, config cache, but still the same error.
In console when I'm using the command:
php artisan route:list
Also, I can't see my route registered.
But when instead of 'routes.article' I'm putting 'test', all it's working.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire