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 to create view Laravel - File Uploading ?
What is faker in laravel?
How would you add a 3rd party package like sentry?
Why laravel over other php frameworks?
What is attribute casting and how does it work in eloquent?
How to serve sites with tls on valet?
How to Deleting Session Data in Laravel ?
What is laravel echo?
How to Declaration of namespace ?
What is the use of accessors and mutators in eloquent?
How to resolve class instance out of the container in laravel?
What do you mean by view composers?
List out the databases laravel supports?
What is laravel framework?
Is valet supports windows or ubuntu environment?