You've already forked isop-mirror
fix: incorrect start and end date range
This commit is contained in:
@@ -16,11 +16,14 @@ class InternshipFactory extends Factory
|
|||||||
*/
|
*/
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
|
$start = fake()->dateTime();
|
||||||
|
$end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours');
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'user_id' => 0,
|
'user_id' => 0,
|
||||||
'company_id' => 0,
|
'company_id' => 0,
|
||||||
'start' => fake()->dateTime(),
|
'start' => $start,
|
||||||
'end' => fake()->dateTime("+30 days"),
|
'end' => $end,
|
||||||
'year_of_study' => fake()->randomElement([1, 2, 3, 4, 5]),
|
'year_of_study' => fake()->randomElement([1, 2, 3, 4, 5]),
|
||||||
'semester' => fake()->randomElement(["WINTER", "SUMMER"]),
|
'semester' => fake()->randomElement(["WINTER", "SUMMER"]),
|
||||||
'position_description' => fake()->jobTitle(),
|
'position_description' => fake()->jobTitle(),
|
||||||
|
|||||||
Reference in New Issue
Block a user