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)