This commit is contained in:
baodev0
2026-08-28 16:40:40 +07:00
parent c917e3bf5e
commit d3d9f76ba0
20 changed files with 94 additions and 11 deletions
@@ -88,7 +88,7 @@ class OrderController extends Controller
public function destroy(int $id): JsonResponse
{
$order = Order::with('invoice', 'invoice.invoiceItem')->find($id);
$order = Order::with('invoice', 'invoice.invoiceItems')->find($id);
abort_if(!$order, 404, "Can't find order by ID #{$id}");