Question:Which is the correct syntax to pass multiple variables to the view? 

A return view('home')->with('projects',$projects)->with('modules',$modules) 

B return view('home')->with(array('projects'=>$projects, 'modules'=>$modules)) 

C return view('home', array('projects'=>$projects, 'modules'=>$modules)) 

D return view('home',['projects'=>$projects, 'modules'=>$modules]) 

+ Answer
+ Report
Total Preview: 882

Copyright © 2024. Powered by Intellect Software Ltd