fix: client service/complaints 500 修复
This commit is contained in:
@@ -20,8 +20,7 @@ class ServiceController extends Controller
|
||||
$customer = $request->user();
|
||||
|
||||
$query = ServiceOrder::withoutGlobalScope('store')
|
||||
->where('customer_id', $customer->id)
|
||||
->with('package:id,name', 'item:id,name');
|
||||
->where('customer_id', $customer->id);
|
||||
|
||||
if ($request->filled('status')) {
|
||||
$query->where('status', (int) $request->input('status'));
|
||||
|
||||
Reference in New Issue
Block a user