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

includeUsers() public method

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