Answer Posted / sachin-laradev
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 |
Post New Answer View All Answers
What is orm in laravel?
What is difference between implicit and explicit route binding in laravel?
Where can I learn laravel?
What is bootstrap software development?
How to use aggregate functions in laravel query?
What is the directory structure of laravel 5.6?
Is laravel based on symfony?
What getfacadeaccessor method does?
How to create custom library in laravel?
Explain dependency injection and their types.
What is php artisan serve in laravel?
What are the difference between soft delete & delete in laravel?
How do I register an artisan command?
What is Named Routes.
What is database migration. How to create migration via artisan?