예제 #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $modules = Module::getOrdered();
     $this->info('Generate Key');
     $this->call('key:generate');
     $this->info('Migrations Basics');
     $this->call('migrate');
     $this->info('Executing Seeders');
     $this->call('db:seed');
     $this->info('Executing Migrations Modules');
     $this->call('module:migrate');
     $this->info('Executing Seeders Modules');
     foreach ($modules as $module) {
         $this->info("Executing Seed for module {$module->name}");
         $this->call('module:seed', ['module' => $module->name]);
     }
 }
예제 #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $modules = Module::getOrdered();
     $this->info('Generate Key');
     $this->call('key:generate');
     $this->info('Migrations Basics');
     $this->call('migrate');
     $this->info('Executing Seeders');
     $this->call('db:seed');
     $this->info('Executing Migrations Modules');
     $this->call('module:migrate');
     $this->info('Executing Seeders Modules');
     foreach ($modules as $module) {
         $this->info("Executing Seed for module {$module->name}");
         $this->call('module:seed', ['module' => $module->name]);
     }
     $this->info('Activate theme: Default');
     \Theme::set('default');
     $this->info('Publish assets themes');
     $this->call('theme:publish');
 }
예제 #3
0
 /**
  * returns a collection of all installed modules
  * ordered by priority.
  *
  * @return Collection
  */
 private function getModules()
 {
     return collect(Module::getOrdered());
 }