/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (Auth::check()) {
         $songs = \App\Song::paginate(5);
         return view('lista.index', compact('songs'));
     } else {
         return redirect(url());
     }
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     if (Auth::check()) {
         if (Auth::user()->is_admin) {
             $songs = \App\Song::paginate(5);
             return view('canciones.index', compact('songs'));
         }
         return redirect('inicio');
     } else {
         return redirect(url());
     }
 }
 public function EditSongPage()
 {
     $songs = Song::paginate(30);
     $data = array('songs' => $songs);
     return View('adminlayouts.song.editSongs', $data);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $songs = \App\Song::paginate(15);
     return view('lista.index', compact('songs'));
 }