class Pool mixin Factory (View source)

Properties

protected Factory $factory

The factory instance.

protected callable $handler

The handler function for the Guzzle client.

protected array $pool

The pool of requests.

Methods

void
__construct(Factory|null $factory = null)

Create a new requests pool.

as(string $key)

Add a request to the pool with a key.

asyncRequest()

Retrieve a new async pending request.

array
getRequests()

Retrieve the requests in the pool.

__call(string $method, array $parameters)

Add a request to the pool with a numeric index.

Details

void __construct(Factory|null $factory = null)

Create a new requests pool.

Parameters

Factory|null $factory

Return Value

void

PendingRequest as(string $key)

Add a request to the pool with a key.

Parameters

string $key

Return Value

PendingRequest

protected PendingRequest asyncRequest()

Retrieve a new async pending request.

Return Value

PendingRequest

array getRequests()

Retrieve the requests in the pool.

Return Value

array

PendingRequest __call(string $method, array $parameters)

Add a request to the pool with a numeric index.

Parameters

string $method
array $parameters

Return Value

PendingRequest

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.