芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Console/Commands/AppInstall.php
call('migrate:fresh'); $this->call('db:seed'); // Admin user table seed $this->info('Admin Table Seeding...'); $this->call('db:seed', ['--class' => AdminTableSeeder::class]); $this->info('Admin Table Seeding completed.'); // Assing role to the admin Seed $this->info('RoleUser Table Seeding...'); $this->call('db:seed', ['--class' => RoleUserTableSeeder::class]); $this->info('RoleUser Table Seeding completed.'); // Core addon seed $this->moduleSeed(); $this->call('optimize:clear'); } protected function moduleSeed() { $this->warn('Module Seeding: '); foreach ($this->modulesName() as $module) { Artisan::call('module:seed ' . $module); $this->line(' ✔ ' . $module); } $this->info('Module seeding completed successfully.'); } protected function modulesName() { $moduels = []; foreach (\Nwidart\Modules\Facades\Module::getOrdered() as $module) { array_push($moduels, $module->getName()); } return $moduels; } }