I have to pass multiple tables info with Laravel. I always do this:
public function get_view(){
$myinfo = Table::where('id',Auth::user()->id)->get();
return view('auth.view')->with('myinfo',$myinfo);
}
I need to pass info from other tables. The function "with" only allows me to pass a single table. Is there a way to do this?