mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-22 14:03:57 +00:00
Major incomplete Change
This commit is contained in:
@@ -17,7 +17,9 @@ class OrderController extends Controller
|
||||
{
|
||||
|
||||
public function listCompanyOrders(String $companyId){
|
||||
$orders = Order::where('company_id', $companyId);
|
||||
$orders = Order::where('company_id', $companyId)
|
||||
->orderBy('created_at', 'desc')
|
||||
->paginate(100);
|
||||
return OrderResource::collection($orders);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user