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 |
How to install and start, stop mysql on valet?
What does guid stand for?
Explain reverse routing in laravel.
How to work with an Error in Laravel ?
What is view laravel?
What is meant by Laravel - Ajax ?
What do you understand by orm?
Please explain the difference between laravel and codeigniter?
How will you describe fillable attribute in a laravel model?
Does laravel support caching?
How do I perform dependency injection in laravel?
What is route model binding in laravel?