How to pass multiple variables by controller to blade file?
Answer Posted / sachin-laradev
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 |
Post New Answer View All Answers
Explain me active record implementation. How to use it laravel?
How to create model controller and migration in a single artisan command in laravel?
How to configure network interfaces in homestead?
What do you understand by lumen?
What is route model binding in laravel?
How do I populate my database with sample data?
How much laravel experience do you have?
What is bearer token?
What is meant by Laravel - Encryption ?
Explain validation concept in laravel.
How to get current url in laravel?
List the steps to configure laravel application.
What is routing in laravel?
How to set login page as default page in laravel?
How would you add a 3rd party package like sentry?