How to pass multiple variables by controller to blade file?
return view('view-file', compact('var1', 'var2', 'var3'));
NOTE :- variables in compact will be used without $ sign
Is This Answer Correct ? | 0 Yes | 0 No |
Explain auth.
What developed the laravel?
State the difference between get and post method.
What is eloquent?
What is routing and how, and what are the different ways to write it?
What is the difference between laravel and symfony?
What do you know about facades in laravel? Explain.
How to set cookies in laravel?
What is an observer in laravel?
List the steps to configure laravel application.
How do I use sub-domain routing?
Can I use react with laravel?