From 0ab56b77c4aaed5594cce838840bc33c441366df Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 22 Mar 2021 09:01:37 +0800 Subject: [PATCH] big commit --- app/Http/Resources/CompanyResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/CompanyResource.php b/app/Http/Resources/CompanyResource.php index a569030e..767a7b39 100644 --- a/app/Http/Resources/CompanyResource.php +++ b/app/Http/Resources/CompanyResource.php @@ -23,7 +23,7 @@ class CompanyResource extends JsonResource 'marking' => CompanyConnections::where('module_one', $this->modules->first()->id)->first()->marking, 'name' => $this->name, 'type' => $this->type, - 'status' => $this->status, + 'status' => (int) $this->status, 'delivery_address' => new AddressResource($this->deliveryAddress), 'contact' => new ContactResource($this->contacts->first()), 'total_orders' => count($this->orders)