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
What is the use of object relational mapping?
What is the difference between echo print print_r and var_dump?
What are the advantages of queue?
How can we use the custom table in laravel?
What do you know about csrf token in laravel?
Laravle supports which databases?
How to fetch data from database in laravel?
What is bootstrap software development?
Do you know about laravel project?
What is a repl?
What is antiforgerytoken used for?
How to get user’s ip address in laravel?
Which template engine is used by laravel?
How to disable maintaince mode in laravel?
Explain reverse routing in laravel.