Skip to content

Commit 7e0a2db

Browse files
authoredMay 10, 2023
Add hashed cast to user password (laravel#6171)
* Add `hashed` cast to user password * Update composer.json
1 parent 90acdfe commit 7e0a2db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎app/Models/User.php

+1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ class User extends Authenticatable
4040
*/
4141
protected $casts = [
4242
'email_verified_at' => 'datetime',
43+
'password' => 'hashed',
4344
];
4445
}

‎composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"php": "^8.1",
99
"guzzlehttp/guzzle": "^7.2",
10-
"laravel/framework": "^10.8",
10+
"laravel/framework": "^10.10",
1111
"laravel/sanctum": "^3.2",
1212
"laravel/tinker": "^2.8"
1313
},

0 commit comments

Comments
 (0)