Assuming you are using controllers you can do something like
$data = [];
$data['objectOne'] = $objectOne;
$data['objectTwo'] = $objectTwo;
return view('view', $data);
Or you can use
return view('view', compact('objectOne','objectTwo'));
Which will make variables $objectOne & $objectTwo available in your view.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community