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 open source software?
How to use where null and where not null eloquent query in laravel?
Explain about laravel project?
How to create Creating a Controller ?
What do you mean by dusk used in laravel 5?
How we can upload files in laravel? Explain
Explain how to create a controller in laravel?
What is the use of php compact function?
What is laravel boilerplate?
What is seeding in laravel?
what are the benefits of laravel over other php frameworks? Explain
Explain service container?