| Conditions | 3 |
| Paths | 4 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function boot() |
||
| 26 | { |
||
| 27 | // Config |
||
| 28 | $this->publishes([ |
||
| 29 | __DIR__.'/../../config/licenses.php' => base_path('config/licenses.php'), |
||
| 30 | ]); |
||
| 31 | |||
| 32 | // Migrations |
||
| 33 | if (method_exists($this, 'loadMigrationsFrom')) { |
||
| 34 | $this->loadMigrationsFrom(__DIR__.'/../../migrations'); |
||
| 35 | } else { |
||
| 36 | $this->publishes([ |
||
| 37 | __DIR__.'/../../migrations/' => database_path('migrations') |
||
| 38 | ], 'migrations'); |
||
| 39 | } |
||
| 40 | |||
| 41 | // Commands |
||
| 42 | if ($this->app->runningInConsole()) { |
||
| 43 | $this->commands([ |
||
| 44 | config('licenses.command_update'), // LicenseUpdate |
||
| 45 | ]); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |