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
What are pros and cons of using laravel framework?
What is service providers?
Explain how to install valet?
How to get/set configuration values in laravel?
Explain how to add additional sites in homestead environment?
What is Named Routes.
Why use route?
How to get last inserted id using laravel query?
Explain bundles in laravel?
Explain traits in laravel.
What is the differce between contracts and facades?
What is route model binding?
Explain fluent query builder in laravel.
Explain short notes on Laravel - Artisan Console and commands ?
Explain what is valet?