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 bootstrap software development?

0 Answers  


What is bearer token?

0 Answers  


What is xss attack with example?

0 Answers  


Does laravel passport use jwt?

0 Answers  


Explain, how to get current environment in laravel 5?

0 Answers  


Tell us what are advantages of laravel?

0 Answers  


Name some inbuilt authentication controllers of laravel.

0 Answers  


Differce between contracts and facades?

0 Answers  


What is rate limiting?

0 Answers  


Explain about input() method.

0 Answers  


How can someone turn off csrf protection for a specific route?

0 Answers  


How to configure network interfaces in homestead?

0 Answers  


Categories