5 class Comment extends Ownable
7 protected $fillable = ['text', 'html'];
10 * Get the entity that this comment belongs to
11 * @return \Illuminate\Database\Eloquent\Relations\MorphTo
13 public function entity()
15 return $this->morphTo('entity');
19 * Get the page that this comment is in.
20 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
22 public function page()
24 return $this->belongsTo(Page::class);
28 * Get the owner of this comment.
29 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
31 public function user()
33 return $this->belongsTo(User::class);