*/ use HasFactory; protected $fillable = [ 'vue_component_name', ]; public function resumes(): BelongsToMany { return $this->belongsToMany(Resume::class, 'resume_resume_component') ->using(ResumeSlot::class) ->withTimestamps(); } public function slots(): HasMany { return $this->hasMany(ResumeSlot::class); } public function inputs(): HasMany { return $this->hasMany(ResumeComponentInput::class); } public function dataTypes(): BelongsToMany { return $this->belongsToMany(ResumeComponentDataType::class) ->using(ResumeComponentInput::class) ->withTimestamps(); } }