We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$casts
1 parent 36ab0a8 commit ab49ea4Copy full SHA for ab49ea4
app/Models/User.php
@@ -32,11 +32,14 @@ class User extends Authenticatable
32
];
33
34
/**
35
- * The attributes that should be cast to native types.
+ * Get the attributes that should be cast.
36
*
37
- * @var array
+ * @return array<string, string>
38
*/
39
- protected $casts = [
40
- 'email_verified_at' => 'datetime',
41
- ];
+ protected function casts(): array
+ {
+ return [
42
+ 'email_verified_at' => 'datetime',
43
+ ];
44
+ }
45
}
0 commit comments