24 lines
477 B
PHP
24 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class BrokerRoleResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'bio' => $this->bio,
|
|
'location' => $this->location,
|
|
'phone' => $this->phone,
|
|
];
|
|
}
|
|
}
|