| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function handle() |
||
| 37 | { |
||
| 38 | $this->call('vendor:publish', [ |
||
| 39 | '--provider' => 'CleaniqueCoders\OpenPayroll\OpenPayrollServiceProvider', |
||
| 40 | '--force' => true, |
||
| 41 | ]); |
||
| 42 | |||
| 43 | if ('testing' != app()->environment()) { |
||
|
|
|||
| 44 | $route = file_get_contents(__DIR__ . '/stubs/routes/web.php.stub'); |
||
| 45 | $file = base_path('routes/web.php'); |
||
| 46 | file_put_contents($file, $route, FILE_APPEND | LOCK_EX); |
||
| 47 | } |
||
| 48 | $this->line(' '); |
||
| 49 | $this->info('Open Payroll has been sucessfully installed! Thanks for using Open Payroll!'); |
||
| 50 | } |
||
| 52 |