Skip to content

Commit

Permalink
update colors..
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimonka2 committed Jun 23, 2021
1 parent 08148b2 commit 1a736b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Commands/SeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ protected function processFolder($folder)
public function handle()
{
$this->verbose = $this->hasOption('verbose');
$this->addStyle('title', 'red', 'default', ['bold']);
$this->addStyle('title', 'bright-red', 'default', ['bold']);
$this->addStyle('error', 'white', 'red', ['bold']);
$this->info(self::format('Seeding states', 'title'));
$this->info(self::format('Seeding DB states.', 'title'));
$this->addStyle('model', 'yellow', 'black', ['bold']);
$this->addStyle('folder', 'green', 'black', ['bold']);
$this->addStyle('folder', 'bright-green', 'black', ['bold']);
$this->stateClass = Flatstate::stateClass();
$this->info('State class: ' . self::format($this->stateClass, 'model'));

Expand All @@ -161,8 +161,10 @@ public function handle()

// process single models
$models = Flatstate::config('models', []);
foreach ($models as $modelClass) {
$this->processModelClass($modelClass);
if(is_array($models)){
foreach ($models as $modelClass) {
$this->processModelClass($modelClass);
}
}

// process model folders
Expand Down

0 comments on commit 1a736b4

Please sign in to comment.