App\Ninja\Transformers\AccountTransformer::includeClients PHP 메소드

includeClients() 공개 메소드

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