]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Entity.php
respective book and chapter structure added.
[bookstack] / app / Entities / Models / Entity.php
index f07d372c3e9cdca77bc1571530f13e357b5bf266..0de83c93869332906842a6ad31fa28ad35ce27a2 100644 (file)
@@ -137,7 +137,7 @@ abstract class Entity extends Model implements Sluggable, Favouritable, Viewable
      */
     public function activity(): MorphMany
     {
-        return $this->morphMany(Activity::class, 'entity')
+        return $this->morphMany(Activity::class, 'loggable')
             ->orderBy('created_at', 'desc');
     }