snipe-it/database/factories/GroupFactory.php

29 lines
488 B
PHP
Raw Normal View History

2021-06-10 13:17:44 -07:00
<?php
namespace Database\Factories;
use App\Models\Group;
2021-06-10 13:19:27 -07:00
use Illuminate\Database\Eloquent\Factories\Factory;
2021-06-10 13:17:44 -07:00
class GroupFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Group::class;
2021-06-10 13:17:44 -07:00
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
2023-03-16 17:07:46 -07:00
'name' => $this->faker->name(),
2021-06-10 13:17:44 -07:00
];
}
}