File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace App\Providers;
44
5+ use Illuminate\Support\Facades\Schema;
56use Illuminate\Support\ServiceProvider;
67
78class WorkflowServiceProvider extends ServiceProvider
@@ -11,9 +12,12 @@ class WorkflowServiceProvider extends ServiceProvider
1112 public function boot()
1213 {
1314 $registry = app()->make('workflow');
14- $workflowLoaderRegistry = app()->make('workflowLoaderRegistry');
15- foreach ($workflowLoaderRegistry->all() as $workflow => $config) {
16- $registry->addFromArray($workflow, $config);
15+ if (Schema::hasTable(config('workflow_loader.loaders.database.tableNames.workflows'))) {
16+
17+ $workflowLoaderRegistry = app()->make('workflowLoaderRegistry');
18+ foreach ($workflowLoaderRegistry->all() as $workflow => $config) {
19+ $registry->addFromArray($workflow, $config);
20+ }
1721 }
1822 }
1923}
You can’t perform that action at this time.
0 commit comments