Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class LarapayServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Register Service Provider. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function register() |
||
21 | }); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Boot Service Provider. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function boot() |
||
30 | { |
||
31 | $this->publishes([ |
||
32 | $this->getDatabasePath() => database_path(), |
||
33 | $this->getConfigPath() => config_path('larapay.php'), |
||
34 | ]); |
||
35 | |||
36 | $this->loadViewsFrom(__DIR__ . '/../files/views', 'larapay'); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Get default config path. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | protected function getConfigPath(): string |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get default database path. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function getDatabasePath(): string |
||
57 | } |
||
58 | } |
||
59 |