I retrieved those from the database and assigned them to variables, but i am not able to pass both of them to the view.
$Posts = posts::find($id);
$image = images::find($id);
I tried passing them both in an array but haven't had luck. tried this as well
return View::make('Index',['x_var' => $Posts, 'y_var' => $image]);
In the view it can only recognise the x_var
and when i use the y_var
the page crashes.