I example products

This commit is contained in:
a6a2f5842 2025-12-02 10:49:27 +01:00
parent 051a8bf95d
commit ac8953dd90
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class ShopAddExampleProducts extends Command
$product = Product::create([ $product = Product::create([
'slug' => $slug, 'slug' => $slug,
'name' => $productName,
'sku' => 'EX-' . strtoupper($this->faker->bothify('??-####')), 'sku' => 'EX-' . strtoupper($this->faker->bothify('??-####')),
'type' => $type, 'type' => $type,
'status' => $this->faker->randomElement(['published', 'published', 'published', 'draft']), 'status' => $this->faker->randomElement(['published', 'published', 'published', 'draft']),