/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index($playlistId)
 {
     // SHOW ALL PLAYLIST ITEMS FOR PLAYLIST $ID
     $playlist = Playlist::find($playlistId);
     $playlistItems = PlaylistItem::where('playlist_id', $playlistId)->whereIn('playback_state', array(0, 1, 2))->orderBy('created_at', 'asc')->paginate(10);
     return View::make('lanager-core::playlist.item.index')->with('title', 'Playlist')->with('playlist', $playlist)->with('playlistItems', $playlistItems);
 }
 public function run()
 {
     DB::table('playlists')->delete();
     // Empty before we seed
     $playlists = array(array('name' => 'Default'));
     foreach ($playlists as $playlist) {
         Playlist::create($playlist);
     }
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $playlistId
  * @return Response
  */
 public function show($playlistId)
 {
     $playlist = Playlist::find($playlistId);
     return View::make('lanager-core::playlist.show')->with('title', 'Playlist')->with('playlist', $playlist);
 }