EmploymentForm::class, "employment_date" => "date", "birthday" => "date", ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } public function getAvatar(): string { return $this->getAvatarGenerator() ->backgroundColor(ColorGenerator::generate($this->full_name)) ->image(); } public function getfullNameAttribute(): string { return "{$this->first_name} {$this->last_name}"; } protected function getAvatarName(): string { return mb_substr($this->first_name, 0, 1) . mb_substr($this->last_name, 0, 1); } protected static function newFactory(): ProfileFactory { return ProfileFactory::new(); } }