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 |
Is laravel better than wordpress?
What do you know about service providers in laravel?
What is laravel vue?
Define lumen.
Is laravel support caching? Explain
Please explain the difference between laravel and codeigniter?
What is auth? How is it used?
What is query scope?
What is auth :: routes ();?
How to enable or disable maintaince mode in laravel.
Explain validations in laravel?
What is valet used in laravel 5?