Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 2 | public function softDelete($custID) |
|
14 | { |
||
15 | // Remove the customer from any users favorites |
||
16 | 2 | CustomerFavs::where('cust_id', $custID)->delete(); |
|
17 | // Disable the customer |
||
18 | 2 | Customers::destroy($custID); |
|
19 | |||
20 | 2 | Log::notice('User - '.Auth::user()->full_name.' has deactivated Customer ID '.$custID); |
|
21 | 2 | return true; |
|
22 | } |
||
24 |