We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1edd27e commit 00172f3Copy full SHA for 00172f3
database/factories/SpotlightFactory.php
@@ -53,7 +53,7 @@ public function bestof(): static
53
{
54
$chartMonth = Carbon::instance($this->faker->dateTimeBetween('-6 years'))->endOfYear();
55
56
- return [
+ return $this->state([
57
'active' => true,
58
'chart_month' => $chartMonth,
59
'mode_specific' => true,
@@ -62,6 +62,6 @@ public function bestof(): static
62
'acronym' => fn (array $attr) => "BEST{$attr['chart_month']->format('Y')}",
63
'name' => fn (array $attr) => "Best of {$attr['chart_month']->format('Y')}",
64
'start_date' => fn (array $attr) => $attr['chart_month']->copy()->addMonths(1)->addDays(rand(0, 27)),
65
- ];
+ ]);
66
}
67
0 commit comments