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 method spoofing?
What is meant by Retrieving Input ?
What are service providers in laravel?
What is remember token in laravel?
Explain active record concept in laravel.
How to get last inserted id using laravel query?
What are route groups?
How can we create a record in laravel using eloquent?
What is url in laravel?
What is meant by CRUD and explain each of it Operations ?
How do I make my application serve its content in different languages?
How to use session in laravel?