| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | public function routes($uri, $controller, $namePrefix) |
||
| 10 | { |
||
| 11 | Route::get($uri.'/{switchable}/on', [ |
||
| 12 | 'uses' => $controller.'@switchOn', |
||
| 13 | 'as' => $namePrefix.'.on', |
||
| 14 | ]); |
||
| 15 | |||
| 16 | Route::get($uri.'/{switchable}/off', [ |
||
| 17 | 'uses' => $controller.'@switchOff', |
||
| 18 | 'as' => $namePrefix.'.off', |
||
| 19 | ]); |
||
| 22 |