Skip to content

Commit 47e73a2

Browse files
authored
Chore: factory doc block in models (#1542)
* chore: adding factory doc-block to user model * chore: fix-path * chore: add factory doc-block into team model
1 parent 0bad9a8 commit 47e73a2

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

stubs/app/Models/Team.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class Team extends JetstreamTeam
1212
{
13+
/** @use HasFactory<\Database\Factories\TeamFactory> */
1314
use HasFactory;
1415

1516
/**

stubs/app/Models/User.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
class User extends Authenticatable
1414
{
1515
use HasApiTokens;
16+
17+
/** @use HasFactory<\Database\Factories\UserFactory> */
1618
use HasFactory;
1719
use HasProfilePhoto;
1820
use Notifiable;

stubs/app/Models/UserWithTeams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class User extends Authenticatable
1515
{
1616
use HasApiTokens;
17+
18+
/** @use HasFactory<\Database\Factories\UserFactory> */
1719
use HasFactory;
1820
use HasProfilePhoto;
1921
use HasTeams;

0 commit comments

Comments
 (0)