2020-11-03 17:18:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use App\Models\AlertSchedule;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
2021-07-26 16:00:34 +02:00
|
|
|
/** @extends Factory<AlertSchedule> */
|
2020-11-03 17:18:31 +01:00
|
|
|
class AlertScheduleFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2022-09-01 19:31:25 +02:00
|
|
|
'title' => $this->faker->name(),
|
|
|
|
'notes' => $this->faker->text(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'recurring' => 0,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function recurring()
|
|
|
|
{
|
|
|
|
return $this->state(function () {
|
|
|
|
return [
|
|
|
|
'recurring' => 1,
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|