/** * @return mixed */ public function seedAdminRole() { if ($this->command->option('verbose')) { return $this->command->call('db:seed', ['--class' => 'Modules\\User\\Database\\Seeders\\GroupSeedTableSeeder']); } return $this->command->callSilent('db:seed', ['--class' => 'Modules\\User\\Database\\Seeders\\GroupSeedTableSeeder']); }
/** * Fire the install script. * * @param Command $command * * @return mixed */ public function fire(Command $command) { if ($command->option('verbose')) { $command->call('key:generate'); $command->call('api:key-generate'); return; } $command->callSilent('key:generate'); $command->callSilent('api:key-generate'); }
/** * Fire the install script. * * @param Command $command * * @return mixed */ public function fire(Command $command) { if ($command->option('verbose')) { $command->blockMessage('Themes', 'Publishing theme assets ...', 'comment'); } if ($command->option('verbose')) { $command->call('stylist:publish'); return; } $command->callSilent('stylist:publish'); }
/** * Fire the install script * @param Command $command * @return mixed */ public function fire(Command $command) { $this->command = $command; // Publish asgard configs if ($this->command->option('verbose')) { $this->command->call('vendor:publish', ['--provider' => 'Modules\\Core\\Providers\\CoreServiceProvider']); } else { $this->command->callSilent('vendor:publish', ['--provider' => 'Modules\\Core\\Providers\\CoreServiceProvider']); } if (!$this->checkIsInstalled()) { return $this->command->error('No user driver was installed. Please check the presence of a Service Provider'); } $this->publish(); $this->configure(); $this->migrate(); $this->seed(); $this->createFirstUser(); if ($this->command->option('verbose')) { $command->info($this->driver . ' succesfully configured'); } }
/** * Fire the install script * @param Command $command * @return mixed */ public function fire(Command $command) { if ($command->option('verbose')) { $command->blockMessage('Seeds', 'Running the module seeds ...', 'comment'); } foreach ($this->modules as $module) { if ($command->option('verbose')) { $command->call('module:seed', ['module' => $module]); continue; } $command->callSilent('module:seed', ['module' => $module]); } }
/** * Fire the install script * @param Command $command * @return mixed */ public function fire(Command $command) { if ($command->option('verbose')) { $command->blockMessage('Module assets', 'Publishing module assets ...', 'comment'); } foreach ($this->modules as $module) { if ($command->option('verbose')) { $command->call('module:publish', ['module' => $module]); continue; } $command->callSilent('module:publish', ['module' => $module]); } }
/** * Fire the install script * @param Command $command * @return mixed */ public function fire(Command $command) { if ($command->option('verbose')) { $command->blockMessage('Migrations', 'Starting the module migrations ...', 'comment'); } foreach ($this->modules as $module) { if ($command->option('verbose')) { $command->call('module:migrate', ['module' => $module]); continue; } $command->callSilent('module:migrate', ['module' => $module]); } }