Skip to content

Commit

Permalink
fix: User factory generics
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-code-labx committed Aug 11, 2024
1 parent 7d6c1be commit 7a28296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @property string $password
*
* @mixin \Illuminate\Database\Eloquent\Builder<User>
* @use HasFactory<UserFactory>
*/
class User extends Authenticatable
{
Expand Down Expand Up @@ -44,6 +45,11 @@ class User extends Authenticatable
'remember_token',
];

/**
* The model factory for this model.
*
* @return UserFactory
*/
protected static function newFactory(): UserFactory
{
return UserFactory::new();
Expand Down

0 comments on commit 7a28296

Please sign in to comment.