Bulletinboard/database/factories/TimePeriodFactory.php

29 lines
504 B
PHP

<?php
namespace Database\Factories;
use App\Models\TimePeriod;
use Illuminate\Database\Eloquent\Factories\Factory;
class TimePeriodFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TimePeriod::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
"name" => $this->faker->text(10)
];
}
}