]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Bookshelf.php
Applied another round of static analysis updates
[bookstack] / app / Entities / Models / Bookshelf.php
index e4d9775b70b470813bd7562d49e04d87e2872934..b9ebab92ef88da243a9ef069f35cce0e5ddd0e14 100644 (file)
@@ -37,7 +37,7 @@ class Bookshelf extends Entity implements HasCoverImage
      */
     public function visibleBooks(): BelongsToMany
     {
-        return $this->books()->visible();
+        return $this->books()->scopes('visible');
     }
 
     /**