Пример #1
0
 /**
  * Delete playlists
  */
 public static function deletePlaylist($playlist_names, $service_id)
 {
     $playlists = Playlist::whereNotIn('name', $playlist_names)->where('service_id', $service_id)->get();
     foreach ($playlists as $playlist) {
         $playlist->delete();
     }
 }