File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ public function boot()
23
23
$ configPath = $ this ->configPath ();
24
24
25
25
$ this ->publishes ([
26
- "$ {configPath}/workflow.php " => config_path ('workflow.php ' ),
27
- "$ {configPath}/workflow_registry.php " => config_path ('workflow_registry.php ' )
26
+ "$ {configPath}/workflow.php " => $ this -> publishPath ('workflow.php ' ),
27
+ "$ {configPath}/workflow_registry.php " => $ this -> publishPath ('workflow_registry.php ' )
28
28
], 'config ' );
29
29
}
30
30
@@ -53,6 +53,15 @@ protected function configPath()
53
53
{
54
54
return __DIR__ . '/../config ' ;
55
55
}
56
+
57
+ protected function publishPath ($ configFile )
58
+ {
59
+ if (function_exists ('config_path ' )) {
60
+ return config_path ($ configFile );
61
+ } else {
62
+ return base_path ('config/ ' . $ configFile );
63
+ }
64
+ }
56
65
57
66
/**
58
67
* Get the services provided by the provider.
You can’t perform that action at this time.
0 commit comments