Skip to content

Commit 7bff7c6

Browse files
committed
add type to UserFactory for generic parent class
1 parent e92f1e9 commit 7bff7c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

database/factories/UserFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
namespace Database\Factories;
44

5+
use App\Models\User;
56
use Illuminate\Database\Eloquent\Factories\Factory;
67
use Illuminate\Support\Str;
78

9+
/**
10+
* @implements Factory<User>
11+
*/
812
class UserFactory extends Factory
913
{
1014
/**

0 commit comments

Comments
 (0)