File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change 19
19
*/
20
20
class DatabaseRepositoryServiceProvider extends ServiceProvider
21
21
{
22
- /**
23
- * The package configuration file.
24
- */
25
- const CONFIG_FILE = 'repository.php ' ;
26
-
27
22
/**
28
23
* Bootstrap the application events.
29
24
*/
30
- // public function boot()
31
- // {
32
- //
33
- //
34
- // $this->register();
35
- // }
36
-
37
- /**
38
- * Register the service provider.
39
- */
40
- public function register (): void
25
+ public function boot ()
41
26
{
42
27
if ($ this ->app instanceof LaravelApplication && $ this ->app ->runningInConsole ()) {
43
28
$ this ->publishes ([
44
- __DIR__ .'/Config/ ' . self :: CONFIG_FILE => config_path (self :: CONFIG_FILE ),
45
- ], 'config ' );
29
+ __DIR__ .'/Config/repository.php ' => config_path (' repository.php ' ),
30
+ ], 'repository- config ' );
46
31
} elseif ($ this ->app instanceof LumenApplication) {
47
32
$ this ->app ->configure ('repository ' );
48
33
}
49
34
50
35
$ this ->registerCommand ();
51
36
}
52
37
38
+ /**
39
+ * Register the service provider.
40
+ */
41
+ public function register (): void
42
+ {
43
+
44
+ }
45
+
53
46
/**
54
47
* Register custom commands.
55
48
*/
You can’t perform that action at this time.
0 commit comments