public includeClients ( App\Models\Account $account ) : League\Fractal\Resource\Collection | ||
$account | App\Models\Account | |
Résultat | League\Fractal\Resource\Collection |
public function includeClients(Account $account)
{
$transformer = new ClientTransformer($account, $this->serializer);
return $this->includeCollection($account->clients, $transformer, 'clients');
}