6
0
Fork 0

Update seeders

release
李静 2022-01-23 12:16:43 +08:00
parent 0d35c84dbc
commit 1757cbdfa9
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class AdminSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call([
AdminMenuSeeder::class,
AdminPermissionSeeder::class,
]);
}
}

View File

@ -15,12 +15,12 @@ class DatabaseSeeder extends Seeder
public function run() public function run()
{ {
$this->call([ $this->call([
AdminMenuSeeder::class, AdminSeeder::class,
AppSettingSeeder::class, AppSettingSeeder::class,
]); ]);
if (! App::isProduction()) { if (! App::isProduction()) {
$this->call([ $this->call([
AdminPermissionSeeder::class,
ProductPartSeeder::class, ProductPartSeeder::class,
ProductCategorySeeder::class, ProductCategorySeeder::class,
AdAddressSeeder::class, AdAddressSeeder::class,