App\Ninja\Transformers\AccountTransformer::includeClients PHP Method

includeClients() public method

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