]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Entity.php
Started refactoring of view service
[bookstack] / app / Entities / Models / Entity.php
index be63cec2bdda22276507b19b916f9f22bfe6c7fa..5618767693b34311ee6057fae86dde062a1192e0 100644 (file)
@@ -12,6 +12,7 @@ use BookStack\Entities\Tools\SlugGenerator;
 use BookStack\Facades\Permissions;
 use BookStack\Interfaces\Favouritable;
 use BookStack\Interfaces\Sluggable;
+use BookStack\Interfaces\Viewable;
 use BookStack\Model;
 use BookStack\Traits\HasCreatorAndUpdater;
 use BookStack\Traits\HasOwner;
@@ -40,7 +41,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
  * @method static Builder withLastView()
  * @method static Builder withViewCount()
  */
-abstract class Entity extends Model implements Sluggable, Favouritable
+abstract class Entity extends Model implements Sluggable, Favouritable, Viewable
 {
     use SoftDeletes;
     use HasCreatorAndUpdater;