*/ class ProjectListingLinkFactory extends Factory { /** * @return array */ public function definition(): array { return [ 'project_id' => Project::factory(), 'shop_id' => 42, 'listing_id' => fake()->unique()->numberBetween(1000, 999999), 'variation_key' => ProjectListingLink::ALL_VARIATIONS, 'title_snapshot' => fake()->words(3, true), 'state_snapshot' => 'active', 'synced_at' => now(), 'created_by' => User::factory()->create(['role' => 'admin'])->id, ]; } }