Skip to content

Commit

Permalink
Merge pull request #14 from mostafaznv/dev
Browse files Browse the repository at this point in the history
register artisan commands outside console env
  • Loading branch information
mostafaznv authored Jun 4, 2023
2 parents 0f4e488 + 4802311 commit 6d02921
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/LaraCacheServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__ . '/../config/config.php' => config_path('laracache.php')], 'config');

$this->commands([
UpdateCacheCommand::class,
DeleteCacheCommand::class,
UpdateGroupCacheCommand::class,
DeleteGroupCacheCommand::class
]);
}

$this->commands([
UpdateCacheCommand::class,
DeleteCacheCommand::class,
UpdateGroupCacheCommand::class,
DeleteGroupCacheCommand::class
]);
}

public function register(): void
Expand Down

0 comments on commit 6d02921

Please sign in to comment.