*/ class GalleryFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { $name = $this->faker->words(2, true); $slug = Str::uuid()->toString(); return [ 'name' => $name, 'slug' => $slug, 'title' => $name, 'images_path' => 'uploads/'.$slug, 'is_public' => true, 'allow_ai_styles' => true, 'allow_print' => true, 'require_password' => false, 'password_hash' => null, 'expires_at' => null, 'access_duration_minutes' => null, 'upload_enabled' => false, 'upload_token_hash' => null, 'upload_token_expires_at' => null, ]; } }