GrafiteInc/Scaffold

View on GitHub
database/factories/TeamFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Database\Factories;

use App\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;

class TeamFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Team::class;

    /**
     * Configure the model factory.
     *
     * @return $this
     */
    public function definition()
    {
        return [
            'user_id' => 1,
            'name' => $this->faker->name,
            'uuid' => $this->faker->uuid,
        ];
    }
}