| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function boot() |
||
| 19 | { |
||
| 20 | Code::addExtension('stub', 'vibro'); |
||
|
|
|||
| 21 | $this->publishes([ |
||
| 22 | $this->configPath => config_path('scaffold.php'), |
||
| 23 | ], 'Scaffold'); |
||
| 24 | |||
| 25 | if ($this->app->runningInConsole()) { |
||
| 26 | $this->commands([ |
||
| 27 | ScaffoldGenerate::class, |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | $this->publishes([ |
||
| 31 | realpath(__DIR__ . '/../stubs') => app_path('Scaffold/stubs') |
||
| 32 | ], 'Scaffold'); |
||
| 33 | } |
||
| 42 |