Having defined routes in routes/web.php as:
Route::group(['middleware' => ['auth'], 'prefix' => 'admin', 'as' => 'admin.'], function () {
...
Route::resource('box-rooms', 'Admin\StorageSpacesController', [ 'as' => 'box-rooms', 'except' => [] ] )->middleware('WorkTextString');
Route::get( 'get-box-rooms-dt-listing', [ 'uses' => 'Admin\StorageSpacesController@get_storage_spaces_dt_listing' ] );
In control I try to redirect :
return redirect()->route('box-rooms.index', [ 'id'=>$requestData['check_in_client_id'],'action'=>'check_in' ]);
OR
return redirect()->route('admin.box-rooms.index', [ 'id'=>$requestData['check_in_client_id'],'action'=>'check_in' ]);
But in both cases I got error that route is not defined. Why eror?
laravel 5.7
Thanks in advance!
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2SkkU0d
via IFTTT
Aucun commentaire:
Enregistrer un commentaire