]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/Comment.php
Laravel 8 shift squash & merge (#3029)
[bookstack] / app / Actions / Comment.php
index 34fd84709ec1d746bd84c2de87854a3845743b01..885ba6ed1ac72d991f7003025ac671ee9d8dd99d 100644 (file)
@@ -4,6 +4,7 @@ namespace BookStack\Actions;
 
 use BookStack\Model;
 use BookStack\Traits\HasCreatorAndUpdater;
+use Illuminate\Database\Eloquent\Factories\HasFactory;
 use Illuminate\Database\Eloquent\Relations\MorphTo;
 
 /**
@@ -15,6 +16,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
  */
 class Comment extends Model
 {
+    use HasFactory;
     use HasCreatorAndUpdater;
 
     protected $fillable = ['text', 'parent_id'];