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 database migration. How to create migration via artisan?
What is guard in laravel authentication?
Please provide steps to configure homestead?
Explain how to do environment configuration in laravel?
Is laravel nova free?
What are the difference between latest() and oldest() in laravel?
What is meant by Laravel - Ajax ?
What is laravel elixir?
What is reverse path check?
How to get/set configuration values in laravel?
What is response macros?
Explain the concept of routing in laravel.