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

How to Declaration of namespace ?

1 Answers  


Does laravel prevent sql injection?

0 Answers  


How to configure clear route cache in laravel?

0 Answers  


Is laravel secure?

0 Answers  


What do you mean by binding in laravel?

0 Answers  


Explain short notes on Laravel - Artisan Console and commands ?

0 Answers  


How do I customize validation error messages for a form?

0 Answers  


Tell me why doesn't laravel use semantic versioning?

0 Answers  


What is namespace in laravel?

0 Answers  


What is eager loading in laravel?

0 Answers  


How to retrive/get current environment in laravel.

0 Answers  


What is laravel contract?

0 Answers  


Categories