You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
671 B
PHTML
27 lines
671 B
PHTML
4 years ago
|
<?php
|
||
|
|
||
|
namespace Database\Factories\Engelsystem\Models\Shifts;
|
||
|
|
||
|
use Engelsystem\Models\Shifts\Schedule;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
class ScheduleFactory extends Factory
|
||
|
{
|
||
|
/** @var string */
|
||
|
protected $model = Schedule::class;
|
||
|
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public function definition()
|
||
|
{
|
||
|
return [
|
||
|
'name' => $this->faker->words(4, true),
|
||
|
'url' => $this->faker->parse('https://{{safeEmailDomain}}/{{slug}}.xml'),
|
||
|
'shift_type' => $this->faker->numberBetween(1, 5),
|
||
|
'minutes_before' => 15,
|
||
|
'minutes_after' => 15,
|
||
|
];
|
||
|
}
|
||
|
}
|