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 bootstrap software development?
What is bearer token?
What is xss attack with example?
Does laravel passport use jwt?
Explain, how to get current environment in laravel 5?
Tell us what are advantages of laravel?
Name some inbuilt authentication controllers of laravel.
Differce between contracts and facades?
What is rate limiting?
Explain about input() method.
How can someone turn off csrf protection for a specific route?
How to configure network interfaces in homestead?