*/ use HasFactory, Notifiable, TwoFactorAuthenticatable; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'is_admin' => 'boolean', 'password' => 'hashed', 'two_factor_confirmed_at' => 'datetime', ]; } public function teams(): BelongsToMany { return $this->belongsToMany(Team::class) ->withTimestamps(); } public function gitConnections(): HasMany { return $this->hasMany(UserGitConnection::class) ->orderBy('provider') ->orderBy('base_url'); } }