V
V
Valeria_Rayshite2017-01-11 08:29:34
Laravel
Valeria_Rayshite, 2017-01-11 08:29:34

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, is
Route::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

1 answer(s)
D
DevOFF, 2017-01-11
@DevOFF

The only thing I see is missing /

Route::get('/dashboard/create', ['as' => 'create', function () {
    return view('dashboard.create');
  }]);

Or something is wrong with the template.
check like this
Route::get('/dashboard/create', ['as' => 'create', function () {
   dd('test');
  }]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question