Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | * Class ServiceProvider. |
||
17 | * @author 安正超 - overtrue |
||
18 | * @github https://github.com/overtrue |
||
19 | */ |
||
20 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
21 | { |
||
22 | /** |
||
23 | * boot |
||
24 | */ |
||
25 | 8 | public function boot(): void |
|
26 | { |
||
27 | 8 | $this->loadMigrationsFrom(__DIR__ . '/../migrations'); |
|
28 | |||
29 | 8 | $this->publishes([ |
|
30 | 8 | __DIR__ . '/../migrations' => database_path('migrations'), |
|
31 | 8 | ], 'migrations'); |
|
32 | |||
33 | 8 | $this->publishes([ |
|
34 | 8 | __DIR__ . '/../config/versionable.php' => config_path('versionable.php'), |
|
35 | 8 | ], 'config'); |
|
36 | 8 | } |
|
49 |