I would like to return two variables from my controller function. The purpose of this is to use them both in my index.blade.php form.
public function index()
{
$checkauth=Auth::check();
$postl= PostModell::orderby('created_at','desc')->paginate(4);
return view ('posts.index')->with('postl',$postl);
}
From the above sample code the two variables are $checkauth and $postl