30 lines
603 B
PHP
30 lines
603 B
PHP
<?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))
|
|
];
|
|
}
|
|
}
|