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