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 |
Tell me what are the feature of laravel 5.0?
How will you explain guarded attribute in a laravel model?
What do you mean by laravel mix?
Explain auth.
Does laravel prevent sql injection?
What is chunk in laravel?
What is url in laravel?
What is luman?
How to create view Laravel - File Uploading ?
Explain the bindings and singletons properties?
What are pros and cons of using laravel framework?
What is current stable version of laravel?