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 |
How do I register a service provider?
Please explain what are the main differences between laravel 4 and laravel 5.x?
What is cross site request forgery with example?
How can we implement a package in laravel?
How to configure route cache in laravel?
Is laravel easy?
Explain the middlewares in laravel?
How to install laravel via composer?
What is trait in laravel?
Name the first file that loaded in laravel?
What are enhancement features in laravel 5.8?
Define http middleware?