Skip to content

Commit

Permalink
Merge pull request #7 from thedevdojo/bugfix/optimize-routes
Browse files Browse the repository at this point in the history
Fix artisan optimize error
  • Loading branch information
tnylea authored Oct 18, 2022
2 parents 2ad6787 + bc2ea1c commit a23b40c
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 a23b40c

Please sign in to comment.