I know I can load nested relationship in Laravel by a simple dot but I need to know if it's possible to load nested in resource and use it in API something like below:
public function toArray($request)
{
return [
'Room' => AccommodationRoomResource::collection($this->firstrelation.NetstedRelation),
];
and my second question is that can I just load some certain fields of it as I don't need all the data to be loaded and make it so messy