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