Updated to laravel 11

This commit is contained in:
Constantin Graf
2024-03-27 15:00:00 +01:00
parent 5d256650d2
commit ebd4754773
22 changed files with 1585 additions and 847 deletions

View File

@@ -67,11 +67,11 @@ class TimeEntryFactory extends Factory
public function startBetween(Carbon $rangeStart, Carbon $rangeEnd): self
{
$start = $this->faker->dateTimeBetween($rangeStart, $rangeEnd);
$start = Carbon::instance($this->faker->dateTimeBetween($rangeStart, $rangeEnd));
return $this->state(function (array $attributes) use ($start): array {
return [
'start' => $start,
'start' => $start->utc(),
'end' => $this->faker->dateTimeBetween($start, 'now'),
];
});