Randy_Johnson
3 months ago
309
9
General

Controller Organisation!

Posted 3 months ago by Randy_Johnson

I stuck all my admin controllers inside a folder called admin. How do I now access them via the routes.

Route::get('/create-user', '[email protected]')->middleware('admin');
Route::post('/store-user', '[email protected]')->middleware('admin');
Route::get('/read-users', '[email protected]')->middleware('admin')->name('read-users');
Route::get('/read-user/{slug}', '[email protected]')->middleware('admin');
Route::get('/edit-user/{slug}', '[email protected]')->middleware('admin');
Route::post('/update-user', '[email protected]')->middleware('admin');
Route::get('/delete-user/{slug}', '[email protected]')->middleware('admin');
Route::post('/search-user', '[email protected]')->middleware('admin');

Please sign in or create an account to participate in this conversation.