Skip to content

Commit

Permalink
fixed guzzle error
Browse files Browse the repository at this point in the history
cutomized data seeder
  • Loading branch information
A1Gard committed Feb 1, 2024
1 parent 2e233dd commit 0cecdc8
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 10 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
"laravel/sanctum": "^2.14.1",
"laravel/tinker": "^2.7",
"laravel/ui": "^3.4",
"nyholm/psr7": "^1.8",
"pishran/zarinpal": "^4.3",
"plank/laravel-metable": "^5.2",
"psr/log": "v2.*",
"symfony/dom-crawler": "^6.2",
"symfony/psr-http-message-bridge": "^7.0",
"xmen/starter-kit": "^v3.1.0"
},
"require-dev": {
Expand Down
163 changes: 162 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 17 additions & 9 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,23 @@ public function run()
XlangSeeder::class,
CategorySeeder::class,
CatSeeder::class,
CustomerSeeder::class,
// PostSeeder::class,
// MenuSeeder::class,
// PropSeeder::class,
// ProductSeeder::class,
// InvoiceSeeder::class,
// SliderSeeder::class,
SettingSeeder::class,
MenuSeeder::class,
]);
if (env('NO_SEED_PRODUCT', 'false') != 'true') {

$this->call([
PostSeeder::class,
MenuSeeder::class,
PropSeeder::class,
ProductSeeder::class,
// InvoiceSeeder::class,
// SliderSeeder::class,
]);
$this->call([
CustomerSeeder::class,
SettingSeeder::class,
MenuSeeder::class,
]);
}

}
}

0 comments on commit 0cecdc8

Please sign in to comment.