Answers for "Laravel Middleware route group"

PHP
0

laravel route group middleware prefix

Route::group(['prefix' => 'admin','middleware' => ['auth:admin']], function() {
    Route::get('dashboard','AdminController@dashboard');
});
Posted by: Guest on September-28-2021
1

laravel route group middleware prefix

Route::group(['prefix' => 'post', 'middleware' => ['auth']], function(){
        Route::get('all','Controller@post');
        Route::get('user','Controller@post');
    })
Posted by: Guest on July-18-2021

Code answers related to "Laravel Middleware route group"

Browse Popular Code Answers by Language