update profile backend

This commit is contained in:
JiaSheng
2023-08-06 10:50:32 +08:00
parent 4db0fb9f29
commit f4e045df5c
10 changed files with 270 additions and 21 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class BusinessTypeResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'type' => $this->type,
];
}
}