'datetime', 'password' => 'hashed', // Laravel 10+ soporta casting a hashed ]; /** * Get the roles associated with the user. */ public function roles(): BelongsToMany { return $this->belongsToMany(Role::class); } }