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

What is the use of object relational mapping?

647


What is the difference between echo print print_r and var_dump?

667


What are the advantages of queue?

722


How can we use the custom table in laravel?

677


What do you know about csrf token in laravel?

720


Laravle supports which databases?

712


How to fetch data from database in laravel?

700


What is bootstrap software development?

668


Do you know about laravel project?

694


What is a repl?

662


What is antiforgerytoken used for?

755


How to get user’s ip address in laravel?

648


Which template engine is used by laravel?

691


How to disable maintaince mode in laravel?

742


Explain reverse routing in laravel.

739