Answer the question
In order to leave comments, you need to log in
How to redirect to routes correctly?
#################
##Админ. панель##
#################
// Тут редиректим на правильный роут
Route::get('admin', function() {
return Redirect::route('panel');
});
// Правильный роут
Route::group(['prefix' => 'panel'], function()
{
Route::get('', ['as' => 'panel', 'uses' => '[email protected]']);
});
Answer the question
In order to leave comments, you need to log in
in 5.1, the naming of routes is done taking into account the group:
Route::group(['as' => 'admin::'], function () {
Route::get('dashboard', ['as' => 'dashboard', function () {
// Route named "admin::dashboard"
}]);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question