'array', 'views' => 'integer', ]; protected function phoneNumber(): Attribute { return Attribute::make( get: fn (mixed $value, array $attributes): ?string => str_replace(' ', '', $attributes['phone_number'] ?? ''), ); } protected function formattedPhoneNumber(): Attribute { return Attribute::make( get: fn (mixed $value, array $attributes): ?string => $attributes['phone_number'] ?? '', ); } public function info(): HasMany { return $this->hasMany(CVInfo::class, 'cv_id'); } public function getRouteKeyName(): string { return 'token'; } }