File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ class WorkflowServiceProvider extends ServiceProvider
2020 */
2121 public function boot ()
2222 {
23- $ configPath = __DIR__ . ' /../config/config.php ' ;
23+ $ configPath = $ this -> configPath () ;
2424
25- $ this ->publishes ([$ configPath => config_path ('workflow.php ' )], 'config ' );
25+ $ this ->publishes ([
26+ $ configPath => config_path ('workflow.php ' )
27+ ], 'config ' );
2628 }
2729
2830 /**
@@ -33,7 +35,7 @@ public function boot()
3335 public function register ()
3436 {
3537 $ this ->mergeConfigFrom (
36- __DIR__ . ' /../config/workflow.php ' ,
38+ $ this -> configPath () ,
3739 'workflow '
3840 );
3941
@@ -46,6 +48,11 @@ public function register()
4648 );
4749 }
4850
51+ protected function configPath ()
52+ {
53+ return __DIR__ . '/../config/workflow.php ' ;
54+ }
55+
4956 /**
5057 * Get the services provided by the provider.
5158 *
You can’t perform that action at this time.
0 commit comments