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...


What is Laravel - Middleware ?



What is Laravel - Middleware ?..

Answer / sunil kumar

Middleware acts as a bridge between a request and a response. It is a type of filtering mechanism.
Laravel includes a middleware that verifies whether the user of the application is authenticated or not.
If the user is authenticated, it redirects to the home page otherwise, if not, it redirects to the login page.

It can be create by executing the following command - php artisan make:middleware <middleware-name>.

Replace the <middleware-name> with the name of your middleware. The middleware that you create can be seen at app/Http/Middleware directory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to use skip() and take() in laravel query?

0 Answers  


What are the requirements for laravel 5.8?

0 Answers  


Why use route?

0 Answers  


What is pluck method in laravel?

0 Answers  


How do I set up the eloquent relationships between the aforementioned comments and authors, including creating the schema design?

0 Answers  


What are class traits?

0 Answers  


What service provider’s register method does?

0 Answers  


How do I see all of the routes that are defined?

0 Answers  


Please explain events in laravel?

0 Answers  


How to create Facade in Laravel ?

1 Answers  


Is multiple php versions are supported by homestead?

0 Answers  


What is compact in laravel?

0 Answers  


Categories