Answer the question
In order to leave comments, you need to log in
When requested, the route goes to the wrong controller, what could be the problem?
Route::prefix('records')
->namespace('Records')
->as('records.')->group(function () {
Route::get('/', '[email protected]')->name('index');
Route::prefix('{file}')
->as('file.')->group(function () {
Route::get('/', '[email protected]')->name('show');
Route::post('/', '[email protected]')->name('take');
Route::put('/', '[email protected]')->name('update');
});
Route::prefix('messages')->as('messages.')->group(function () {
Route::post('/', '[email protected]')->name('index');
Route::put('/', '[email protected]')->name('store');
Route::prefix('{message}')->group(function () {
Route::delete('/', '[email protected]')->name('destroy');
});
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question