| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CustomerIdController extends Controller |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Show customer quick-search page for customers |
||
| 16 | */ |
||
| 17 | public function index() |
||
| 18 | { |
||
| 19 | 2 | $this->authorize('manage', Customer::class); |
|
| 20 | return Inertia::render('Customers/Id/Index'); |
||
| 21 | 2 | } |
|
| 22 | |||
| 23 | 1 | /** |
|
| 24 | * Form to allow changing a customers ID number |
||
| 25 | */ |
||
| 26 | public function edit($id) |
||
| 31 | 2 | ]); |
|
| 32 | } |
||
| 33 | 1 | ||
| 34 | 1 | /** |
|
| 35 | * Submit the customers new ID number |
||
| 36 | */ |
||
| 37 | public function update(CustomerIdRequest $request, $id) |
||
| 49 |