ldc-supportweb/database/factories/MacroSchedule/ActivityFactory.php

31 lines
603 B
PHP
Raw Permalink Normal View History

<?php
namespace Database\Factories\MacroSchedule;
use App\Models\MacroSchedule\Activity;
use Illuminate\Database\Eloquent\Factories\Factory;
class ActivityFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Activity::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
\mt_srand();
return [
'load' => \mt_rand(1, 3),
'comment' => $this->faker->sentence(mt_rand(2, 6))
];
}
}