ldc-supportweb/database/factories/MacroSchedule/ActivityFactory.php
Jérémy Munsch d52edeb6bc
MacroPlanning functionnality
bump kwaadpepper/crud-policies
2022-05-04 17:34:56 +02:00

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))
];
}
}