backend registration step 1

This commit is contained in:
CheeSiong
2020-10-24 10:31:52 +08:00
parent ec4dc051eb
commit eac5ffda7b
48 changed files with 8960 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ContactResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'country_id' => $this->country_id,
'company_id' => $this->company_id,
'reference' => $this->reference,
'phone' => $this->phone,
'email' => $this->email,
'wechat_id' => $this->wechat_id,
];
}
}