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 laravel artisan?

690


Explain the bindings and singletons properties?

683


What is escaping a string?

709


Explain auth.

729


What is the laravel framework?

671


What are the difference between soft delete & delete in laravel?

719


What is homebrew?

729


What are route parameters?

783


What is stack channel?

692


How install react js in laravel?

741


How do I seed my database for column that is a foreign key referencing to other table?

655


Why use route?

674


What is mvc laravel?

712


What are the three service provider types?

702


How to get JSON Response on Laravel ?

1579