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 |
How to use select query in laravel?
what is implementation measures in CSRF Protection ?
What is laravel elixir?
Do you know what version of laravel do you generally use?
Tell me in which language it was written?
Is multiple php versions are supported by homestead?
Explain me what is your favorite feature of laravel?
What are laravel contract’s?
How to clear complete cache in laravel?
How to configure network interfaces in homestead?
How do I make my application serve its content in different languages?
Do you know validations in laravel?