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?

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


Please Help Members By Posting Answers For Below Questions

Explain dependency injection?

753


What is vagrantfile?

714


What is algolia search?

670


What is api php in laravel?

795


What is the use of dd() function?

711


Is laravel built on symfony?

683


What is backend framework?

696


What is use keyword in laravel?

730


What are policies classes?

725


What version of laravel do you generally use?

743


What is name route in laravel?

747


What is namespace in laravel?

779


What is console in laravel?

765


How do I perform dependency injection in laravel?

662


What is the purpose of using dd() function iin laravel?

754