*/ use HasFactory; protected $fillable = [ 'name', 'creator_id' ]; public function creator(): BelongsTo { return $this->belongsTo(User::class, 'creator_id'); } public function slots(): HasMany { return $this->hasMany(ResumeSlot::class); } public function components(): BelongsToMany { return $this->belongsToMany(ResumeComponent::class) ->using(ResumeSlot::class) ->orderBy('resume_slots.order'); } }