generated from liutk/owl-admin-base
Update
parent
7c755b9072
commit
b892957694
|
|
@ -16,7 +16,7 @@ class StoreMasterCommissionController extends Controller
|
||||||
|
|
||||||
$storeMasterCommissions = $user->storeMasterCommissions()
|
$storeMasterCommissions = $user->storeMasterCommissions()
|
||||||
->onlyApproved()
|
->onlyApproved()
|
||||||
->orderBy(DB::raw("STR_TO_DATE(month, '%Y-%m')"), 'DESC')
|
->orderBy(DB::raw("STR_TO_DATE(concat(month, '-01'), '%Y-%m-%d')"), 'DESC')
|
||||||
->simplePaginate($request->query('per_page', 20));
|
->simplePaginate($request->query('per_page', 20));
|
||||||
|
|
||||||
return StoreMasterCommissionResource::collection($storeMasterCommissions);
|
return StoreMasterCommissionResource::collection($storeMasterCommissions);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue