dealhub/app/Http/Resources/BrokerRoleResource.php
2026-01-21 19:11:10 +05:30

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,
];
}
}