File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace App\Providers;
4
4
5
+ use Illuminate\Support\Facades\Schema;
5
6
use Illuminate\Support\ServiceProvider;
6
7
7
8
class WorkflowServiceProvider extends ServiceProvider
@@ -11,9 +12,12 @@ class WorkflowServiceProvider extends ServiceProvider
11
12
public function boot()
12
13
{
13
14
$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
+ }
17
21
}
18
22
}
19
23
}
You can’t perform that action at this time.
0 commit comments