EscolaLMS/Auth

View on GitHub
database/factories/GroupFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Database\Factories\EscolaLms\Auth\Models;

use EscolaLms\Auth\Models\Group;
use Illuminate\Database\Eloquent\Factories\Factory;

class GroupFactory extends Factory
{
    protected $model = Group::class;

    public function definition(): array
    {
        return [
            'name' => $this->faker->word,
            'parent_id' => null,
            'registerable' => $this->faker->boolean
        ];
    }
}