You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
user_center/app/Http/Resources/EmployeeSocialItems.php

31 lines
826 B

4 years ago
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class EmployeeSocialItems extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'employee_id' => $this->employee_id,
'social_type' => $this->social_type,
'base_price' => $this->base_price,
'personal_rate' => $this->personal_rate,
'unit_rate' => $this->unit_rate,
'personal_price' => $this->personal_price,
'unit_price' => $this->unit_price,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}