fruivita/corporate

View on GitHub
database/factories/OccupationFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace FruiVita\Corporate\Database\Factories;

use FruiVita\Corporate\Models\Occupation;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @see https://laravel.com/docs/9.x/database-testing
 * @see https://fakerphp.github.io/
 */
class OccupationFactory extends Factory
{
    protected $model = Occupation::class;

    /**
     * {@inheritdoc}
     */
    public function definition()
    {
        return [
            'id' => $this->faker->unique()->randomNumber(),
            'name' => $this->faker->jobTitle(),
        ];
    }
}