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 the differce between contracts and facades?
Is laravel good for api?
In laravel, what is fillable attribute in a model?
What is namespace laravel?
State the difference between codeigniter and laravel.
Please explain what are the main differences between laravel 4 and laravel 5.x?
What do you know about traits in laravel?
Exceptions are handled by which class?
what is meant by CSRF Protection in Laravel ?
How to get last inserted id using laravel query?
What is singleton design pattern in laravel?
How to rollback last migration?