Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add a middleware in route group?



How to add a middleware in route group?..

Answer / 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

More Laravel PHP Framework Interview Questions

What is database migration. How to create migration via artisan?

0 Answers  


What is guard in laravel authentication?

0 Answers  


Please provide steps to configure homestead?

0 Answers  


Explain how to do environment configuration in laravel?

0 Answers  


Is laravel nova free?

0 Answers  


What are the difference between latest() and oldest() in laravel?

0 Answers  


What is meant by Laravel - Ajax ?

1 Answers  


What is laravel elixir?

0 Answers  


What is reverse path check?

0 Answers  


How to get/set configuration values in laravel?

0 Answers  


What is response macros?

0 Answers  


Explain the concept of routing in laravel.

0 Answers  


Categories