*/ protected $fillable = [ 'title', 'slug', 'publish_at', 'content', 'user_id', 'hero' ]; /** * Get the article user * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } /** * Get all of the article's attachments. * * @return MorphMany */ public function attachments() { return $this->morphMany(\App\Models\Attachment::class, 'attachable'); } }