Skip to content

Commit

Permalink
Fix artisan optimize error
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Oct 18, 2022
1 parent 2ad6787 commit bc2ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThemesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ThemesServiceProvider extends ServiceProvider
*/
public function register()
{
if (request()->is(config('voyager.prefix')) || request()->is(config('voyager.prefix').'/*')) {
if ( request()->is(config('voyager.prefix')) || request()->is(config('voyager.prefix').'/*') || app()->runningInConsole() ) {
$this->addThemesTable();

app(Dispatcher::class)->listen('voyager.menu.display', function ($menu) {
Expand Down

0 comments on commit bc2ea1c

Please sign in to comment.