Initial commit

This commit is contained in:
omair saleh
2020-05-11 14:43:49 +08:00
commit 4b1930b9ee
776 changed files with 266655 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ClientResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'type_id' => $this->type_id,
'type' => $this->CustomerType->name,
'marking' => $this->marking,
'name' => $this->name,
'email' => $this->email,
'wechat_id' => $this->wechat_id
];
}
}