Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to pass multiple variables by controller to blade file?



How to pass multiple variables by controller to blade file?..

Answer / 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

More Laravel PHP Framework Interview Questions

Explain, how to get current environment in laravel 5?

0 Answers  


What is the use of slug in laravel?

0 Answers  


Tell me what is system requirement for installation of laravel 5.2 (latest version)?

0 Answers  


What is blade template engine?

0 Answers  


Tell me how to enable maintenance mode in laravel 5?

0 Answers  


How to enable multiple php versions in homestead?

0 Answers  


What is oauth2 in laravel?

0 Answers  


What are blade templates?

0 Answers  


How to stop mysql on valet?

0 Answers  


what is Restful Resource Controllers ?

1 Answers  


What is tinker in laravel?

0 Answers  


How can you enable query log in laravel?

0 Answers  


Categories