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 can we use middleware in laravel?
Does laravel use bootstrap?
What is difference between single quote and double quote?
Difference between facades vs. Dependency injection?
What the server requirements for laravel?
What is meant by Forms in Laravel ?
Which file is used to create a connection with the database?
What is design pattern in laravel?
What is laravel auth guard?
Explain active record concept in laravel.
how to create subdomain routing in laravel 5?
What is your favorite feature of laravel?
How to enable maintaince mode in laravel?
What is observer in laravel?
What is factory in laravel?