Skip to content

Commit

Permalink
fix unique error
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Feb 1, 2021
1 parent 1f556a8 commit 78d29ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/factories/CategoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Bazar\Models\Category;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class CategoryFactory extends Factory
{
Expand All @@ -23,6 +24,7 @@ public function definition(): array
{
return [
'name' => $this->faker->word,
'slug' => Str::random(),
'description' => $this->faker->sentences(2, true),
];
}
Expand Down
1 change: 1 addition & 0 deletions database/factories/ProductFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function definition(): array
{
return [
'name' => $this->faker->company,
'slug' => Str::random(),
'description' => $this->faker->sentences(3, true),
'options' => ['Size' => ['XS', 'S', 'M', 'L']],
'prices' => [
Expand Down

0 comments on commit 78d29ee

Please sign in to comment.