middleware('auth'); $path = "Ajax/$var.php"; try { include("Ajax/$var.php"); return $return; } catch (\Exception $e) { echo $e; //return abort(404); } } }