Skip to content

Commit c2aa6c4

Browse files
Skip collection & taxonomy boot when running in console
Skip collection & taxonomy boot when running in console
2 parents 1c5365f + fd49eff commit c2aa6c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function bootEvents()
5858

5959
public function bootCollections()
6060
{
61-
if(Collection::find('structured_data_templates')) {
61+
if($this->app->runningInConsole() || Collection::find('structured_data_templates')) {
6262
return $this;
6363
}
6464

@@ -80,7 +80,7 @@ public function bootCollections()
8080

8181
public function bootTaxonomies()
8282
{
83-
if(Taxonomy::find('structured_data_objects')) {
83+
if($this->app->runningInConsole() || Taxonomy::find('structured_data_objects')) {
8484
return $this;
8585
}
8686

0 commit comments

Comments
 (0)