*/ use HasFactory, Notifiable, HasApiTokens, HasRoles, TwoFactorAuthenticatable; public function organizations() { return $this->belongsToMany(Organization::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_msp_staff' => 'boolean', 'last_login_at' => 'datetime', ]; } }