Ejemplo n.º 1
0
 /**
  * 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]);
 }
Ejemplo n.º 2
0
 public function getAuditions()
 {
     return view('admin.auditions', ['auditions' => Audition::all()]);
 }
Ejemplo n.º 3
0
 public function index()
 {
     return Audition::all();
 }