Answer the question
In order to leave comments, you need to log in
Laravel 5.3 why doesn't complex routes work?
For example, if so Route::get('/', '[email protected]');
or so
Route::get('en', ['as' => 'en', function () {
return view('en.home');
}]);
everything works perfectly. But, if the route, by the way, isRoute::get('dashboard/create', ['as' => 'create', function () {
return view('dashboard.create');
}]);
those.http://localhost:8000/какое-то слово/еще какое-то слово
instead of view, the first word from the url is displayed. Help, please, to understand what is the error?
Answer the question
In order to leave comments, you need to log in
The only thing I see is missing /
Route::get('/dashboard/create', ['as' => 'create', function () {
return view('dashboard.create');
}]);
Route::get('/dashboard/create', ['as' => 'create', function () {
dd('test');
}]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question