*/ use HasFactory; protected $fillable = [ 'name', 'creator_id' ]; public function creator(): BelongsTo { return $this->belongsTo(User::class, 'creator_id'); } public function components(): BelongsToMany { return $this->belongsToMany(ResumeComponent::class, 'resume_resume_component') ->withPivot('order', 'data') ->withTimestamps() ->orderBy('order'); } }