forked from admin/services_core
30 lines
744 B
PHP
30 lines
744 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Tenant;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class TenantResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'tenant_code' => $this->tenant_code,
|
|
'tenant_name' => $this->tenant_name,
|
|
'phone' => $this->phone,
|
|
'email' => $this->email,
|
|
'address' => $this->address,
|
|
'status' => $this->status,
|
|
'created_at' => $this->created_at,
|
|
'updated_at' => $this->updated_at,
|
|
];
|
|
}
|
|
}
|