class Http extends Facade

Properties

static protected $app

The application instance being facaded.

from  Facade
static protected array $resolvedInstance

The resolved object instances.

from  Facade
static protected bool $cached

Indicates if the resolved instance should be cached.

from  Facade

Methods

static void
resolved(Closure $callback)

Run a Closure when the facade has been resolved.

from  Facade
static 
spy()

Convert the facade into a Mockery spy.

from  Facade
static 
partialMock()

Initiate a partial mock on the facade.

from  Facade
static 
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static 
expects()

Initiate a mock expectation on the facade.

from  Facade
static 
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static 
createMock()

Create a fresh mock instance for the given class.

from  Facade
static bool
isMock()

Determines whether a mock is set as the instance of the facade.

from  Facade
static string|null
getMockableClass()

Get the mockable class for the bound instance.

from  Facade
static 
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from  Facade
static bool
isFake()

Determines whether a "fake" has been set as the facade instance.

from  Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

from  Facade
static void
clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

from  Facade
static void
clearResolvedInstances()

Clear all of the resolved instances.

from  Facade
static Collection
defaultAliases()

Get the application default aliases.

from  Facade
static 
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(mixed $app)

Set the application instance.

from  Facade
static 
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from  Facade
static Factory
fake(array|callable|null $callback = null)

Register a stub callable that will intercept requests and be able to return stub responses.

fakeSequence(string $urlPattern = '*')

Register a response sequence for the given URL pattern.

static Factory
preventStrayRequests(bool $prevent = true)

Indicate that an exception should be thrown if any request is not faked.

static Factory
stubUrl(string $url, array|callable|int|PromiseInterface|Response|string $callback)

Stub the given URL using the given callback.

static Factory
globalMiddleware(callable $middleware)

No description

static Factory
globalRequestMiddleware(callable $middleware)

No description

static Factory
globalResponseMiddleware(callable $middleware)

No description

static Factory
globalOptions(Closure|array $options)

No description

static PromiseInterface
response(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

static Response
psr7Response(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

failedRequest(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

static Closure
failedConnection(string|null $message = 'null')

No description

sequence(array $responses = '[]')

No description

static bool
preventingStrayRequests()

No description

static Factory
allowStrayRequests(array|null $only = 'null')

No description

static void
recordRequestResponsePair(Request $request, Response|null $response)

No description

static void
assertSent(callable $callback)

No description

static void
assertSentInOrder(array $callbacks)

No description

static void
assertNotSent(callable $callback)

No description

static void
assertNothingSent()

No description

static void
assertSentCount(int $count)

No description

static void
assertSequencesAreEmpty()

No description

static Collection
recorded(callable|null $callback = 'null')

No description

static PendingRequest
createPendingRequest()

No description

static Dispatcher|null
getDispatcher()

No description

static array
getGlobalMiddleware()

No description

static Factory
registerConnection(string $name, array $config = '[]')

No description

static bool
hasConnection(string $name)

No description

static callable
getConnectionHandler(string $name)

No description

static ClientInterface
createClient(HandlerStack $handlerStack, CookieJar $cookies)

No description

static array
getConnectionConfigs()

No description

static array
getConnectionConfig(string $name)

No description

static array
getConnectionOptions(string $name)

No description

static Factory
setConnectionConfig(string $name, array $config)

No description

static void
macro(string $name, callable|object $macro)

No description

static void
mixin(object $mixin, bool $replace = 'true')

No description

static bool
hasMacro(string $name)

No description

static void
flushMacros()

No description

static mixed
macroCall(string $method, array $parameters)

No description

static PendingRequest
baseUrl(string $url)

No description

static PendingRequest
withBody(mixed $content, string $contentType = '\'application/json\'')

No description

static PendingRequest
asJson()

No description

static PendingRequest
asForm()

No description

static PendingRequest
attach(array|string $name, resource|string $contents = '\'\'', string|null $filename = 'null', array $headers = '[]')

No description

static PendingRequest
asMultipart()

No description

static PendingRequest
bodyFormat(string $format)

No description

static PendingRequest
withQueryParameters(array $parameters)

No description

static PendingRequest
contentType(string $contentType)

No description

static PendingRequest
acceptJson()

No description

static PendingRequest
accept(string $contentType)

No description

static PendingRequest
withHeaders(array $headers)

No description

static PendingRequest
withHeader(string $name, mixed $value)

No description

static PendingRequest
replaceHeaders(array $headers)

No description

static PendingRequest
withBasicAuth(string $username, string $password)

No description

static PendingRequest
withDigestAuth(string $username, string $password)

No description

static PendingRequest
withNtlmAuth(string $username, string $password)

No description

static PendingRequest
withToken(string $token, string $type = '\'Bearer\'')

No description

static PendingRequest
withUserAgent(string|bool $userAgent)

No description

static PendingRequest
withUrlParameters(array $parameters = '[]')

No description

static PendingRequest
withCookies(array $cookies, string $domain)

No description

static PendingRequest
maxRedirects(int $max)

No description

static PendingRequest
withoutRedirecting()

No description

static PendingRequest
withoutVerifying()

No description

static PendingRequest
sink(resource|string $to)

No description

static PendingRequest
timeout(int|float $seconds)

No description

static PendingRequest
connectTimeout(int|float $seconds)

No description

static PendingRequest
retry(array|int $times, Closure|int $sleepMilliseconds = '0', callable|null $when = 'null', bool $throw = 'true')

No description

static PendingRequest
withOptions(array $options)

No description

static PendingRequest
withMiddleware(callable $middleware)

No description

static PendingRequest
withRequestMiddleware(callable $middleware)

No description

static PendingRequest
withResponseMiddleware(callable $middleware)

No description

static PendingRequest
withAttributes(array $attributes)

No description

static PendingRequest
withoutTelescope()

No description

static PendingRequest
withTelescopeTags(array $tags)

No description

static PendingRequest
beforeSending(callable $callback)

No description

static PendingRequest
afterResponse(callable $callback)

No description

static PendingRequest
throw(callable|null $callback = 'null')

No description

static PendingRequest
throwIf(callable|bool $condition)

No description

static PendingRequest
throwUnless(callable|bool $condition)

No description

static PendingRequest
dump()

No description

static PendingRequest
dd()

No description

static Response
get(string $url, JsonSerializable|array|string|null $query = 'null')

No description

static Response
head(string $url, array|string|null $query = 'null')

No description

static Response
post(string $url, JsonSerializable|array $data = '[]')

No description

static Response
patch(string $url, array $data = '[]')

No description

static Response
put(string $url, array $data = '[]')

No description

static Response
delete(string $url, array $data = '[]')

No description

static Response
send(string $method, string $url, array $options = '[]')

No description

static ClientInterface
buildClient()

No description

static HandlerStack
buildHandlerStack()

No description

static HandlerStack
pushHandlers(HandlerStack $handlerStack)

No description

static Closure
buildBeforeSendingHandler()

No description

static Closure
buildRecorderHandler()

No description

static Closure
buildStubHandler()

No description

static RequestInterface
runBeforeSendingCallbacks(RequestInterface $request, array $options)

No description

static array
mergeOptions(mixed ...$options)

No description

static PendingRequest
stub(Collection|callable $callback)

No description

static bool
isAllowedRequestUrl(string $url)

No description

static PendingRequest
async(bool $async = 'true')

No description

static PromiseInterface|null
getPromise()

No description

static PendingRequest
truncateExceptionsAt(int $length)

No description

static PendingRequest
dontTruncateExceptions()

No description

static PendingRequest
setClient(ClientInterface $client)

No description

static PendingRequest
setHandler(callable $handler)

No description

static array
getOptions()

No description

static PendingRequest
connection(string $connection, array|null $config = 'null')

No description

static string|null
getConnection()

No description

static PendingRequest|mixed
when(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

static PendingRequest|mixed
unless(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

Details

in Facade at line 55
static void resolved(Closure $callback)

Run a Closure when the facade has been resolved.

Boot-only. The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.

Parameters

Closure $callback

Return Value

void

in Facade at line 71
static spy()

Convert the facade into a Mockery spy.

in Facade at line 89
static partialMock()

Initiate a partial mock on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 105
static shouldReceive()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 121
static expects()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

in Facade at line 135
static protected createFreshMockInstance()

Create a fresh mock instance for the given class.

in Facade at line 147
static protected createMock()

Create a fresh mock instance for the given class.

in Facade at line 157
static protected bool isMock()

Determines whether a mock is set as the instance of the facade.

Return Value

bool

in Facade at line 168
static protected string|null getMockableClass()

Get the mockable class for the bound instance.

Return Value

string|null

in Facade at line 184
static swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Tests only. Replaces the worker-wide resolved facade instance and container binding; runtime use races across coroutines and changes every subsequent facade call.

Parameters

mixed $instance

in Facade at line 196
static bool isFake()

Determines whether a "fake" has been set as the facade instance.

Return Value

bool

in Facade at line 207
static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

at line 165
static protected string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

in Facade at line 223
static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

Return Value

mixed

in Facade at line 246
static void clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

Boot or tests only. Clears a worker-wide facade cache entry; concurrent coroutines may still hold the previous resolved instance.

Parameters

string|null $name

Return Value

void

in Facade at line 257
static void clearResolvedInstances()

Clear all of the resolved instances.

Boot or tests only. Clears the worker-wide facade cache; concurrent coroutines may still hold previously resolved instances.

Return Value

void

in Facade at line 265
static Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

in Facade at line 324
static getFacadeApplication()

Get the application instance behind the facade.

in Facade at line 337
static void setFacadeApplication(mixed $app)

Set the application instance.

Tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.

Parameters

mixed $app

Return Value

void

in Facade at line 347
static __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Exceptions

RuntimeException

at line 126
static Factory fake(array|callable|null $callback = null)

Register a stub callable that will intercept requests and be able to return stub responses.

Parameters

array|callable|null $callback

Return Value

Factory

at line 136
static ResponseSequence fakeSequence(string $urlPattern = '*')

Register a response sequence for the given URL pattern.

Parameters

string $urlPattern

Return Value

ResponseSequence

at line 148
static Factory preventStrayRequests(bool $prevent = true)

Indicate that an exception should be thrown if any request is not faked.

Parameters

bool $prevent

Return Value

Factory

at line 158
static Factory stubUrl(string $url, array|callable|int|PromiseInterface|Response|string $callback)

Stub the given URL using the given callback.

Parameters

string $url
array|callable|int|PromiseInterface|Response|string $callback

Return Value

Factory

at line 121
static Factory globalMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 121
static Factory globalRequestMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 121
static Factory globalResponseMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 121
static Factory globalOptions(Closure|array $options)

No description

Parameters

Closure|array $options

Return Value

Factory

at line 121
static PromiseInterface response(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

mixed $body
int $status
array $headers

Return Value

PromiseInterface

at line 121
static Response psr7Response(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

mixed $body
int $status
array $headers

Return Value

Response

at line 121
static RequestException failedRequest(mixed $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

mixed $body
int $status
array $headers

Return Value

RequestException

at line 121
static Closure failedConnection(string|null $message = 'null')

No description

Parameters

string|null $message

Return Value

Closure

at line 121
static ResponseSequence sequence(array $responses = '[]')

No description

Parameters

array $responses

Return Value

ResponseSequence

at line 121
static bool preventingStrayRequests()

No description

Return Value

bool

at line 121
static Factory allowStrayRequests(array|null $only = 'null')

No description

Parameters

array|null $only

Return Value

Factory

at line 121
static void recordRequestResponsePair(Request $request, Response|null $response)

No description

Parameters

Request $request
Response|null $response

Return Value

void

at line 121
static void assertSent(callable $callback)

No description

Parameters

callable $callback

Return Value

void

at line 121
static void assertSentInOrder(array $callbacks)

No description

Parameters

array $callbacks

Return Value

void

at line 121
static void assertNotSent(callable $callback)

No description

Parameters

callable $callback

Return Value

void

at line 121
static void assertNothingSent()

No description

Return Value

void

at line 121
static void assertSentCount(int $count)

No description

Parameters

int $count

Return Value

void

at line 121
static void assertSequencesAreEmpty()

No description

Return Value

void

at line 121
static Collection recorded(callable|null $callback = 'null')

No description

Parameters

callable|null $callback

Return Value

Collection

at line 121
static PendingRequest createPendingRequest()

No description

Return Value

PendingRequest

at line 121
static Dispatcher|null getDispatcher()

No description

Return Value

Dispatcher|null

at line 121
static array getGlobalMiddleware()

No description

Return Value

array

at line 121
static Factory registerConnection(string $name, array $config = '[]')

No description

Parameters

string $name
array $config

Return Value

Factory

at line 121
static bool hasConnection(string $name)

No description

Parameters

string $name

Return Value

bool

at line 121
static callable getConnectionHandler(string $name)

No description

Parameters

string $name

Return Value

callable

at line 121
static ClientInterface createClient(HandlerStack $handlerStack, CookieJar $cookies)

No description

Parameters

HandlerStack $handlerStack
CookieJar $cookies

Return Value

ClientInterface

at line 121
static array getConnectionConfigs()

No description

Return Value

array

at line 121
static array getConnectionConfig(string $name)

No description

Parameters

string $name

Return Value

array

at line 121
static array getConnectionOptions(string $name)

No description

Parameters

string $name

Return Value

array

at line 121
static Factory setConnectionConfig(string $name, array $config)

No description

Parameters

string $name
array $config

Return Value

Factory

at line 121
static void macro(string $name, callable|object $macro)

No description

Parameters

string $name
callable|object $macro

Return Value

void

at line 121
static void mixin(object $mixin, bool $replace = 'true')

No description

Parameters

object $mixin
bool $replace

Return Value

void

at line 121
static bool hasMacro(string $name)

No description

Parameters

string $name

Return Value

bool

at line 121
static void flushMacros()

No description

Return Value

void

at line 121
static mixed macroCall(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

at line 121
static PendingRequest baseUrl(string $url)

No description

Parameters

string $url

Return Value

PendingRequest

at line 121
static PendingRequest withBody(mixed $content, string $contentType = '\'application/json\'')

No description

Parameters

mixed $content
string $contentType

Return Value

PendingRequest

at line 121
static PendingRequest asJson()

No description

Return Value

PendingRequest

at line 121
static PendingRequest asForm()

No description

Return Value

PendingRequest

at line 121
static PendingRequest attach(array|string $name, resource|string $contents = '\'\'', string|null $filename = 'null', array $headers = '[]')

No description

Parameters

array|string $name
resource|string $contents
string|null $filename
array $headers

Return Value

PendingRequest

at line 121
static PendingRequest asMultipart()

No description

Return Value

PendingRequest

at line 121
static PendingRequest bodyFormat(string $format)

No description

Parameters

string $format

Return Value

PendingRequest

at line 121
static PendingRequest withQueryParameters(array $parameters)

No description

Parameters

array $parameters

Return Value

PendingRequest

at line 121
static PendingRequest contentType(string $contentType)

No description

Parameters

string $contentType

Return Value

PendingRequest

at line 121
static PendingRequest acceptJson()

No description

Return Value

PendingRequest

at line 121
static PendingRequest accept(string $contentType)

No description

Parameters

string $contentType

Return Value

PendingRequest

at line 121
static PendingRequest withHeaders(array $headers)

No description

Parameters

array $headers

Return Value

PendingRequest

at line 121
static PendingRequest withHeader(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

PendingRequest

at line 121
static PendingRequest replaceHeaders(array $headers)

No description

Parameters

array $headers

Return Value

PendingRequest

at line 121
static PendingRequest withBasicAuth(string $username, string $password)

No description

Parameters

string $username
string $password

Return Value

PendingRequest

at line 121
static PendingRequest withDigestAuth(string $username, string $password)

No description

Parameters

string $username
string $password

Return Value

PendingRequest

at line 121
static PendingRequest withNtlmAuth(string $username, string $password)

No description

Parameters

string $username
string $password

Return Value

PendingRequest

at line 121
static PendingRequest withToken(string $token, string $type = '\'Bearer\'')

No description

Parameters

string $token
string $type

Return Value

PendingRequest

at line 121
static PendingRequest withUserAgent(string|bool $userAgent)

No description

Parameters

string|bool $userAgent

Return Value

PendingRequest

at line 121
static PendingRequest withUrlParameters(array $parameters = '[]')

No description

Parameters

array $parameters

Return Value

PendingRequest

at line 121
static PendingRequest withCookies(array $cookies, string $domain)

No description

Parameters

array $cookies
string $domain

Return Value

PendingRequest

at line 121
static PendingRequest maxRedirects(int $max)

No description

Parameters

int $max

Return Value

PendingRequest

at line 121
static PendingRequest withoutRedirecting()

No description

Return Value

PendingRequest

at line 121
static PendingRequest withoutVerifying()

No description

Return Value

PendingRequest

at line 121
static PendingRequest sink(resource|string $to)

No description

Parameters

resource|string $to

Return Value

PendingRequest

at line 121
static PendingRequest timeout(int|float $seconds)

No description

Parameters

int|float $seconds

Return Value

PendingRequest

at line 121
static PendingRequest connectTimeout(int|float $seconds)

No description

Parameters

int|float $seconds

Return Value

PendingRequest

at line 121
static PendingRequest retry(array|int $times, Closure|int $sleepMilliseconds = '0', callable|null $when = 'null', bool $throw = 'true')

No description

Parameters

array|int $times
Closure|int $sleepMilliseconds
callable|null $when
bool $throw

Return Value

PendingRequest

at line 121
static PendingRequest withOptions(array $options)

No description

Parameters

array $options

Return Value

PendingRequest

at line 121
static PendingRequest withMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 121
static PendingRequest withRequestMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 121
static PendingRequest withResponseMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 121
static PendingRequest withAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

PendingRequest

at line 121
static PendingRequest withoutTelescope()

No description

Return Value

PendingRequest

at line 121
static PendingRequest withTelescopeTags(array $tags)

No description

Parameters

array $tags

Return Value

PendingRequest

at line 121
static PendingRequest beforeSending(callable $callback)

No description

Parameters

callable $callback

Return Value

PendingRequest

at line 121
static PendingRequest afterResponse(callable $callback)

No description

Parameters

callable $callback

Return Value

PendingRequest

at line 121
static PendingRequest throw(callable|null $callback = 'null')

No description

Parameters

callable|null $callback

Return Value

PendingRequest

at line 121
static PendingRequest throwIf(callable|bool $condition)

No description

Parameters

callable|bool $condition

Return Value

PendingRequest

at line 121
static PendingRequest throwUnless(callable|bool $condition)

No description

Parameters

callable|bool $condition

Return Value

PendingRequest

at line 121
static PendingRequest dump()

No description

Return Value

PendingRequest

at line 121
static PendingRequest dd()

No description

Return Value

PendingRequest

at line 121
static Response get(string $url, JsonSerializable|array|string|null $query = 'null')

No description

Parameters

string $url
JsonSerializable|array|string|null $query

Return Value

Response

at line 121
static Response head(string $url, array|string|null $query = 'null')

No description

Parameters

string $url
array|string|null $query

Return Value

Response

at line 121
static Response post(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

Response

at line 121
static Response patch(string $url, array $data = '[]')

No description

Parameters

string $url
array $data

Return Value

Response

at line 121
static Response put(string $url, array $data = '[]')

No description

Parameters

string $url
array $data

Return Value

Response

at line 121
static Response delete(string $url, array $data = '[]')

No description

Parameters

string $url
array $data

Return Value

Response

at line 121
static Response send(string $method, string $url, array $options = '[]')

No description

Parameters

string $method
string $url
array $options

Return Value

Response

at line 121
static ClientInterface buildClient()

No description

Return Value

ClientInterface

at line 121
static HandlerStack buildHandlerStack()

No description

Return Value

HandlerStack

at line 121
static HandlerStack pushHandlers(HandlerStack $handlerStack)

No description

Parameters

HandlerStack $handlerStack

Return Value

HandlerStack

at line 121
static Closure buildBeforeSendingHandler()

No description

Return Value

Closure

at line 121
static Closure buildRecorderHandler()

No description

Return Value

Closure

at line 121
static Closure buildStubHandler()

No description

Return Value

Closure

at line 121
static RequestInterface runBeforeSendingCallbacks(RequestInterface $request, array $options)

No description

Parameters

RequestInterface $request
array $options

Return Value

RequestInterface

at line 121
static array mergeOptions(mixed ...$options)

No description

Parameters

mixed ...$options

Return Value

array

at line 121
static PendingRequest stub(Collection|callable $callback)

No description

Parameters

Collection|callable $callback

Return Value

PendingRequest

at line 121
static bool isAllowedRequestUrl(string $url)

No description

Parameters

string $url

Return Value

bool

at line 121
static PendingRequest async(bool $async = 'true')

No description

Parameters

bool $async

Return Value

PendingRequest

at line 121
static PromiseInterface|null getPromise()

No description

Return Value

PromiseInterface|null

at line 121
static PendingRequest truncateExceptionsAt(int $length)

No description

Parameters

int $length

Return Value

PendingRequest

at line 121
static PendingRequest dontTruncateExceptions()

No description

Return Value

PendingRequest

at line 121
static PendingRequest setClient(ClientInterface $client)

No description

Parameters

ClientInterface $client

Return Value

PendingRequest

at line 121
static PendingRequest setHandler(callable $handler)

No description

Parameters

callable $handler

Return Value

PendingRequest

at line 121
static array getOptions()

No description

Return Value

array

at line 121
static PendingRequest connection(string $connection, array|null $config = 'null')

No description

Parameters

string $connection
array|null $config

Return Value

PendingRequest

at line 121
static string|null getConnection()

No description

Return Value

string|null

at line 121
static PendingRequest|mixed when(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

Parameters

Closure|mixed $value
null|callable $callback
null|callable $default

Return Value

PendingRequest|mixed

at line 121
static PendingRequest|mixed unless(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

Parameters

Closure|mixed $value
null|callable $callback
null|callable $default

Return Value

PendingRequest|mixed