Skip to content

Commit

Permalink
SeoServiceProvider загрузка консольных команд вне консоли
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashagm committed Aug 31, 2023
1 parent 61f3cf0 commit 5cba36d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/CreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CreateCommand extends Command
*
* @var string
*/
protected $description = 'Данная команда создаст необходимые файлы.';
protected $description = 'Данная команда создаст необходимые файлы для пакета seo.';

/**
* Execute the console command.
Expand Down
4 changes: 4 additions & 0 deletions src/Providers/SeoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ protected function registerCommands()
$this->commands([
CreateCommand::class,
]);
} else {
$this->commands([
CreateCommand::class,
]);
}
}
}

0 comments on commit 5cba36d

Please sign in to comment.