How to add a middleware in route group?
Here is an example of auth middleware route group
Route: :group(['prefix' => 'auth'], function () {
Route::get('/login'"AuthController@login");
Route: :post('/login',"AuthController@authenticate');
Route: :get('/logout'"AuthController@logout");
});
| Is This Answer Correct ? | 0 Yes | 0 No |
What is use keyword in laravel?
What is laravel good for?
What are policies?
What is laravel horizon?
How to use stored procedures in laravel?
How to assign multiple middleware to laravel route ?
Is laravel a cms?
How to use cookies in laravel?
What are the three service provider types?
What is meant by Forms in Laravel ?
Tell us what are bundles, reverse routing and the ioc container?
What is the service container in laravel?