How to create Facade in Laravel ?
Answer / 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 |
What is your favorite feature of laravel?
What are the basic concepts in laravel?
What is laravel policy?
Explain how to create custom middleware in laravel?
How to check an input value is present or not in laravel?
What are the types of service providers?
How to upgrade valet to valet 2.0?
What getfacadeaccessor method does?
What is repository in laravel?
How to use multiple or condition in laravel query?
Explain automatic injection in laravel?
How to create Controller Laravel - File Uploading ?