*/ use HasFactory, Notifiable; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } /** * @return HasMany */ public function recordings(): HasMany { return $this->hasMany(Recording::class); } /** * Initials for Flux avatar components. */ public function initials(): string { return Str::of($this->name) ->explode(' ') ->take(2) ->map(fn (string $part) => Str::substr($part, 0, 1)) ->implode(''); } }