Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function update(CustomerIdRequest $request, $id) |
||
38 | { |
||
39 | $cust = Customer::findOrFail($id); |
||
40 | $cust->update($request->only(['cust_id'])); |
||
41 | 1 | ||
42 | event(new CustomerIdChangedEvent($cust, $request->current_id)); |
||
43 | 1 | return redirect()->route('admin.index')->with([ |
|
44 | 'message' => 'Customer ID Updated', |
||
45 | 'type' => 'success', |
||
46 | 1 | ]); |
|
49 |