Skip to content

Commit

Permalink
Update DatabaseSeeder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jan 27, 2024
1 parent a1dfdb0 commit 0aeae83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function run(): void
$brands = $this->withProgressBar(20, fn () => Brand::factory()->count(20)
->has(Address::factory()->count(rand(1, 3)))
->create());
Brand::query()->update(['sort' => new Expression('id')]);
$this->command->info('Shop brands created.');

$this->command->warn(PHP_EOL . 'Creating shop categories...');
Expand Down

0 comments on commit 0aeae83

Please sign in to comment.