/** * Show the profile for the given user. * * @param int $id * @return Response */ public function showHome() { if (Auth::user()->user_type == 2) { return redirect()->route('manage-auditions'); } $auditions = Audition::all(); return view('home', ['auditions' => $auditions]); }
public function getAuditions() { return view('admin.auditions', ['auditions' => Audition::all()]); }
public function index() { return Audition::all(); }