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 to configure route cache in laravel?
Explain events in laravel?
Explain response in laravel.
Explain the concept of routing in laravel.
What are laravel eloquent?
How do you register service providers?
How to register a service provider via composer in laravel?
What do you mean by bundles?
What is a controller middleware?
How to enable query log in laravel 5?
How do laravel facades work?
What is guarded attribute in a model?