Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __invoke($cust_id) |
||
17 | { |
||
18 | $this->authorize('manage', Customer::class); |
||
19 | Customer::findOrFail($cust_id)->update(['parent_id' => null]); |
||
20 | |||
21 | Log::channel('cust')->notice('Customer Link broken for Customer ID '.$cust_id.' by '.Auth::user()->username); |
||
1 ignored issue
–
show
|
|||
22 | return back()->with(['message' => 'Customer Link Broken', 'type' => 'warning']); |
||
23 | } |
||
25 |