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
How do I require authentication for a set of routes associated with a subdomain?
List out the databases laravel supports?
What is a Retrieving Input ?
What is meant by Laravel - Ajax ?
Explain how to localize resource uris in laravel?
What are the differences between laravel and codeigniter?
How to do environment configuration in laravel.
How to share sites with external world on valet?
How to rollback last migration?
How can you enable query log in laravel?
What are bundles, reverse routing and the ioc container?
List site types supported by homestead?
What do you mean by binding in laravel?
What are common http error codes?
What is difference between single quote and double quote?