Skip to content

Commit

Permalink
Chore: factory doc block in models (#1542)
Browse files Browse the repository at this point in the history
* chore: adding factory doc-block to user model

* chore: fix-path

* chore: add factory doc-block into team model
  • Loading branch information
MrPunyapal authored Oct 2, 2024
1 parent 0bad9a8 commit 47e73a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions stubs/app/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

class Team extends JetstreamTeam
{
/** @use HasFactory<\Database\Factories\TeamFactory> */
use HasFactory;

/**
Expand Down
2 changes: 2 additions & 0 deletions stubs/app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
class User extends Authenticatable
{
use HasApiTokens;

/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory;
use HasProfilePhoto;
use Notifiable;
Expand Down
2 changes: 2 additions & 0 deletions stubs/app/Models/UserWithTeams.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
class User extends Authenticatable
{
use HasApiTokens;

/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory;
use HasProfilePhoto;
use HasTeams;
Expand Down

0 comments on commit 47e73a2

Please sign in to comment.