Fix scoped queries

This commit is contained in:
Adam Lavin 2017-11-28 16:44:28 +00:00
parent 9f1f78339f
commit d2390868dd
3 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class Album extends Model implements Searchable, Commentable, Favouritable
]); ]);
} }
return !$query; return $query;
} }
protected $table = 'albums'; protected $table = 'albums';

View file

@ -138,7 +138,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable
]); ]);
} }
return !$query; return $query;
} }
public static function mapPublicPlaylistShow(Playlist $playlist) public static function mapPublicPlaylistShow(Playlist $playlist)

View file

@ -133,7 +133,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
]); ]);
} }
return !$query; return $query;
} }
/** /**