Skip to content

Commit

Permalink
Improves Jetstream model factories (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Aug 11, 2023
1 parent 3928524 commit df9388a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions database/factories/TeamFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Team>
*/
class TeamFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Team::class;

/**
* Define the model's default state.
*
Expand Down
10 changes: 3 additions & 7 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
use Illuminate\Support\Str;
use Laravel\Jetstream\Features;

/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;

/**
* Define the model's default state.
*
Expand Down

0 comments on commit df9388a

Please sign in to comment.