skip to Main Content

assign data to variable PHP – Laravel

I wan to get data for two variables in same method but its not happening function display(){ $datas=Req::all(); $products = Product::all(); return view ('products.dispaly')->with('products', $products,'datas',$datas); } here i want to get data from table and assign them to two separate…

VIEW QUESTION
Back To Top
Search