*/ class PhotoShareLinkFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'photo_id' => Photo::factory(), 'slug' => Str::lower(Str::random(32)), 'expires_at' => now()->addDay(), 'created_by_device_id' => $this->faker->unique()->uuid(), 'created_ip' => $this->faker->ipv4(), ]; } }