Add hashed cast to user password (#6171)

* Add `hashed` cast to user password

* Update composer.json
This commit is contained in:
Eliezer Margareten 2023-05-10 21:51:00 +03:00 committed by GitHub
parent 90acdfe92b
commit 7e0a2db2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -40,5 +40,6 @@ class User extends Authenticatable
*/
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}

View File

@ -7,7 +7,7 @@
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.8",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},