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 create Facade in Laravel ?

Answer Posted / suresh kumar

The following are the steps to create Facade in Laravel -

Step 1 - Create PHP Class File.

Step 2 - Bind that class to Service Provider.

Step 3 - Register that ServiceProvider to

Configapp.php as providers.

Step 4 - Create Class which is this class extends to

lluminateSupportFacadesFacade.

Step 5 - Register point 4 to Configapp.php as aliases.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I require authentication for a set of routes associated with a subdomain?

703


List out the databases laravel supports?

744


What is a Retrieving Input ?

1054


What is meant by Laravel - Ajax ?

1327


Explain how to localize resource uris in laravel?

707


What are the differences between laravel and codeigniter?

798


How to do environment configuration in laravel.

777


How to share sites with external world on valet?

758


How to rollback last migration?

764


How can you enable query log in laravel?

812


What are bundles, reverse routing and the ioc container?

676


List site types supported by homestead?

674


What do you mean by binding in laravel?

692


What are common http error codes?

775


What is difference between single quote and double quote?

618