| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function handle() |
||
| 29 | { |
||
| 30 | file_put_contents( |
||
| 31 | base_path('routes/web.php'), |
||
| 32 | file_get_contents(__DIR__.'/stubs/Route/web.stub'), |
||
| 33 | FILE_APPEND |
||
| 34 | ); |
||
| 35 | |||
| 36 | file_put_contents( |
||
| 37 | base_path('routes/api.php'), |
||
| 38 | file_get_contents(__DIR__.'/stubs/Route/api.stub'), |
||
| 39 | FILE_APPEND |
||
| 40 | ); |
||
| 41 | |||
| 42 | $this->components->info('Routes scaffolding generated successfully.'); |
||
| 43 | } |
||
| 45 |