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 controller in laravel?
What is api php in laravel?
Is laravel the best php framework?
How to generate it on homestead?
What is laravel artisan?
How do I make a particular task run everyday by 10pm?
What is the difference between facades vs helper functions?
What are blade templates?
What is gate in laravel?
What is laravel orm?
Is laravel an mvc framework?
How do you call artisan command in laravel?