close #11 Fixed: Companies api not working
This commit is contained in:
parent
a0370e0123
commit
941034c96c
@ -25,7 +25,7 @@ class Companies extends ApiController
|
|||||||
$company->setSettings();
|
$company->setSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->response->paginator($companies, new Transformer());
|
return $this->response->collection($companies, new Transformer());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,11 @@ class Company extends TransformerAbstract
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $model->id,
|
'id' => $model->id,
|
||||||
|
'name' => $model->company_name,
|
||||||
|
'email' => $model->company_email,
|
||||||
'domain' => $model->domain,
|
'domain' => $model->domain,
|
||||||
|
'address' => $model->company_address,
|
||||||
|
'logo' => $model->company_logo,
|
||||||
'enabled' => $model->enabled,
|
'enabled' => $model->enabled,
|
||||||
'created_at' => $model->created_at->toIso8601String(),
|
'created_at' => $model->created_at->toIso8601String(),
|
||||||
'updated_at' => $model->updated_at->toIso8601String(),
|
'updated_at' => $model->updated_at->toIso8601String(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user