Http

Illuminate\Support\Facades\Http

class src/Illuminate/Support/Facades/Http.php

accept

v11.0.0 以前から

static @method

static accept(string $contentType): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static accept(string $contentType): \Illuminate\Http\Client\PendingRequest

acceptJson

v11.0.0 以前から

static @method

static acceptJson(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static acceptJson(): \Illuminate\Http\Client\PendingRequest

afterResponse

v12.44.0 から

static @method

static afterResponse(callable $callback): \Illuminate\Http\Client\PendingRequest
  1. v12.44.0 追加
    変更後
    @method static afterResponse(callable|null $callback): \Illuminate\Http\Client\PendingRequest
  2. v13.21.0 シグネチャ変更
    変更前
    @method static afterResponse(callable|null $callback): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static afterResponse(callable $callback): \Illuminate\Http\Client\PendingRequest

allowStrayRequests

v11.0.0 以前から

static @method

static allowStrayRequests(array|null $only = null): \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    @method static allowStrayRequests(): \Illuminate\Http\Client\Factory
  2. v12.25.0 シグネチャ変更
    変更前
    @method static allowStrayRequests(): \Illuminate\Http\Client\Factory
    変更後
    @method static allowStrayRequests(array|null $only = null): \Illuminate\Http\Client\Factory
  3. v13.4.0 シグネチャ変更
    変更前
    @method static allowStrayRequests(array|null $only = null): \Illuminate\Http\Client\Factory
    変更後
    @method static allowStrayRequests(array<int, string>|null $only = null): \Illuminate\Http\Client\Factory
  4. v13.6.0 シグネチャ変更
    変更前
    @method static allowStrayRequests(array<int, string>|null $only = null): \Illuminate\Http\Client\Factory
    変更後
    @method static allowStrayRequests(array|null $only = null): \Illuminate\Http\Client\Factory

asForm

v11.0.0 以前から

static @method

static asForm(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static asForm(): \Illuminate\Http\Client\PendingRequest

asJson

v11.0.0 以前から

static @method

static asJson(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static asJson(): \Illuminate\Http\Client\PendingRequest

asMultipart

v11.0.0 以前から

static @method

static asMultipart(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static asMultipart(): \Illuminate\Http\Client\PendingRequest

assertNothingSent

v11.0.0 以前から

static @method

static assertNothingSent(): void
  1. v11.0.0 追加
    変更後
    @method static assertNothingSent(): void

assertNotSent

v11.0.0 以前から

static @method

static assertNotSent(callable|\Closure $callback): void
  1. v11.0.0 追加
    変更後
    @method static assertNotSent(callable $callback): void
  2. v12.14.0 シグネチャ変更
    変更前
    @method static assertNotSent(callable $callback): void
    変更後
    @method static assertNotSent(callable|\Closure $callback): void

assertSent

v11.0.0 以前から

static @method

static assertSent(callable|\Closure $callback): void
  1. v11.0.0 追加
    変更後
    @method static assertSent(callable $callback): void
  2. v12.14.0 シグネチャ変更
    変更前
    @method static assertSent(callable $callback): void
    変更後
    @method static assertSent(callable|\Closure $callback): void

assertSentCount

v11.0.0 以前から

static @method

static assertSentCount(int $count): void
  1. v11.0.0 追加
    変更後
    @method static assertSentCount(int $count): void

assertSentInOrder

v11.0.0 以前から

static @method

static assertSentInOrder(array $callbacks): void
  1. v11.0.0 追加
    変更後
    @method static assertSentInOrder(array $callbacks): void
  2. v13.4.0 シグネチャ変更
    変更前
    @method static assertSentInOrder(array $callbacks): void
    変更後
    @method static assertSentInOrder(array<string|\Closure|callable> $callbacks): void
  3. v13.6.0 シグネチャ変更
    変更前
    @method static assertSentInOrder(array<string|\Closure|callable> $callbacks): void
    変更後
    @method static assertSentInOrder(array $callbacks): void

assertSequencesAreEmpty

v11.0.0 以前から

static @method

static assertSequencesAreEmpty(): void
  1. v11.0.0 追加
    変更後
    @method static assertSequencesAreEmpty(): void

async

v11.0.0 以前から

static @method

static async(bool $async = true): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static async(bool $async = true): \Illuminate\Http\Client\PendingRequest
  2. v13.4.0 シグネチャ変更
    変更前
    @method static async(bool $async = true): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static async(bool $async = true): \Illuminate\Http\Client\PendingRequest<bool>
  3. v13.6.0 シグネチャ変更
    変更前
    @method static async(bool $async = true): \Illuminate\Http\Client\PendingRequest<bool>
    変更後
    @method static async(bool $async = true): \Illuminate\Http\Client\PendingRequest

attach

v11.0.0 以前から

static @method

static attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = []): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = []): \Illuminate\Http\Client\PendingRequest

baseUrl

v11.0.0 以前から

static @method

static baseUrl(string $url): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static baseUrl(string $url): \Illuminate\Http\Client\PendingRequest

batch

v12.32.0 から

static @method

static batch(callable $callback): \Illuminate\Http\Client\Batch
  1. v12.32.0 追加
    変更後
    @method static batch(callable $callback): \Illuminate\Http\Client\Batch

beforeSending

v11.0.0 以前から

static @method

static beforeSending(callable $callback): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static beforeSending(callable $callback): \Illuminate\Http\Client\PendingRequest

bodyFormat

v11.0.0 以前から

static @method

static bodyFormat(string $format): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static bodyFormat(string $format): \Illuminate\Http\Client\PendingRequest

buildBeforeSendingHandler

v11.0.0 以前から

static @method

static buildBeforeSendingHandler(): \Closure
  1. v11.0.0 追加
    変更後
    @method static buildBeforeSendingHandler(): \Closure

buildClient

v11.0.0 以前から

static @method

static buildClient(): \GuzzleHttp\Client
  1. v11.0.0 追加
    変更後
    @method static buildClient(): \GuzzleHttp\Client

buildHandlerStack

v11.0.0 以前から

static @method

static buildHandlerStack(): \GuzzleHttp\HandlerStack
  1. v11.0.0 追加
    変更後
    @method static buildHandlerStack(): \GuzzleHttp\HandlerStack

buildRecorderHandler

v11.0.0 以前から

static @method

static buildRecorderHandler(): \Closure
  1. v11.0.0 追加
    変更後
    @method static buildRecorderHandler(): \Closure

buildStubHandler

v11.0.0 以前から

static @method

static buildStubHandler(): \Closure
  1. v11.0.0 追加
    変更後
    @method static buildStubHandler(): \Closure

connectTimeout

v11.0.0 以前から

static @method

static connectTimeout(int|float $seconds): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static connectTimeout(int $seconds): \Illuminate\Http\Client\PendingRequest
  2. v11.35.1 シグネチャ変更
    変更前
    @method static connectTimeout(int $seconds): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static connectTimeout(int|float $seconds): \Illuminate\Http\Client\PendingRequest

contentType

v11.0.0 以前から

static @method

static contentType(string $contentType): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static contentType(string $contentType): \Illuminate\Http\Client\PendingRequest

createClient

v11.0.0 以前から

static @method

static createClient(\GuzzleHttp\HandlerStack $handlerStack): \GuzzleHttp\Client
  1. v11.0.0 追加
    変更後
    @method static createClient(\GuzzleHttp\HandlerStack $handlerStack): \GuzzleHttp\Client

createPendingRequest

v11.3.0 から

static @method

static createPendingRequest(): \Illuminate\Http\Client\PendingRequest
  1. v11.3.0 追加
    変更後
    @method static createPendingRequest(): \Illuminate\Http\Client\PendingRequest

dd

v11.0.0 以前から

static @method

static dd(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static dd(): \Illuminate\Http\Client\PendingRequest

delete

v11.0.0 以前から

static @method

static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static delete(string $url, array $data = []): \Illuminate\Http\Client\Response
  2. v12.3.0 シグネチャ変更
    変更前
    @method static delete(string $url, array $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
  3. v12.41.0 シグネチャ変更
    変更前
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  4. v12.43.0 シグネチャ変更
    変更前
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
  5. v12.44.0 シグネチャ変更
    変更前
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
    変更後
    @method static delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

dontTruncateExceptions

v12.18.0 から

static @method

static dontTruncateExceptions(): \Illuminate\Http\Client\PendingRequest
  1. v12.18.0 追加
    変更後
    @method static dontTruncateExceptions(): \Illuminate\Http\Client\PendingRequest

dump

v11.0.0 以前から

static @method

static dump(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static dump(): \Illuminate\Http\Client\PendingRequest

failedConnection

v11.32.0 から

static @method

static failedConnection(string|null $message = null): \Closure
  1. v11.32.0 追加
    変更後
    @method static failedConnection(string|null $message = null): \GuzzleHttp\Promise\PromiseInterface
  2. v12.14.0 シグネチャ変更
    変更前
    @method static failedConnection(string|null $message = null): \GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static failedConnection(string|null $message = null): \Closure

failedRequest

v12.8.1 から

static @method

static failedRequest(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
  1. v12.8.1 追加
    変更後
    @method static failedRequest(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
  2. v13.4.0 シグネチャ変更
    変更前
    @method static failedRequest(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
    変更後
    @method static failedRequest(array|string|null $body = null, int $status = 200, array<string, mixed> $headers = []): \Illuminate\Http\Client\RequestException
  3. v13.6.0 シグネチャ変更
    変更前
    @method static failedRequest(array|string|null $body = null, int $status = 200, array<string, mixed> $headers = []): \Illuminate\Http\Client\RequestException
    変更後
    @method static failedRequest(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
  4. v13.22.0 シグネチャ変更
    変更前
    @method static failedRequest(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
    変更後
    @method static failedRequest(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException

fake

v11.0.0 以前から

static

static fake($callback = null)
@param \Closure|array|null $callback
@return \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    static fake($callback = null) [@param \Closure|array $callback, @return \Illuminate\Http\Client\Factory]
  2. v12.29.0 シグネチャ変更
    変更前
    static fake($callback = null) [@param \Closure|array $callback, @return \Illuminate\Http\Client\Factory]
    変更後
    static fake($callback = null) [@param \Closure|array|null $callback, @return \Illuminate\Http\Client\Factory]

fakeSequence

v11.0.0 以前から

static

static fakeSequence(string $urlPattern = '*')
@param string $urlPattern
@return \Illuminate\Http\Client\ResponseSequence
  1. v11.0.0 追加
    変更後
    static fakeSequence(string $urlPattern = '*') [@param string $urlPattern, @return \Illuminate\Http\Client\ResponseSequence]

flushMacros

v11.0.0 以前から

static @method

static flushMacros(): void
  1. v11.0.0 追加
    変更後
    @method static flushMacros(): void

get

v11.0.0 以前から

static @method

static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response
  2. v12.41.0 シグネチャ変更
    変更前
    @method static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response
    変更後
    @method static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  3. v12.43.0 シグネチャ変更
    変更前
    @method static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static get(string $url, array|string|null $query = null): void
  4. v12.44.0 シグネチャ変更
    変更前
    @method static get(string $url, array|string|null $query = null): void
    変更後
    @method static get(string $url, array|string|null $query = null): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

getDispatcher

v11.0.0 以前から

static @method

static getDispatcher(): \Illuminate\Contracts\Events\Dispatcher|null
  1. v11.0.0 追加
    変更後
    @method static getDispatcher(): \Illuminate\Contracts\Events\Dispatcher|null

getGlobalMiddleware

v11.0.0 以前から

static @method

static getGlobalMiddleware(): array
  1. v11.0.0 追加
    変更後
    @method static getGlobalMiddleware(): array

getOptions

v11.0.0 以前から

static @method

static getOptions(): array
  1. v11.0.0 追加
    変更後
    @method static getOptions(): array

getPromise

v11.0.0 以前から

static @method

static getPromise(): \GuzzleHttp\Promise\PromiseInterface|null
  1. v11.0.0 追加
    変更後
    @method static getPromise(): \GuzzleHttp\Promise\PromiseInterface|null

globalMiddleware

v11.0.0 以前から

static @method

static globalMiddleware(callable $middleware): \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    @method static globalMiddleware(callable $middleware): \Illuminate\Http\Client\Factory

globalOptions

v11.0.0 以前から

static @method

static globalOptions(\Closure|array $options): \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    @method static globalOptions(\Closure|array $options): \Illuminate\Http\Client\Factory

globalRequestMiddleware

v11.0.0 以前から

static @method

static globalRequestMiddleware(callable $middleware): \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    @method static globalRequestMiddleware(callable $middleware): \Illuminate\Http\Client\Factory

globalResponseMiddleware

v11.0.0 以前から

static @method

static globalResponseMiddleware(callable $middleware): \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    @method static globalResponseMiddleware(callable $middleware): \Illuminate\Http\Client\Factory

hasMacro

v11.0.0 以前から

static @method

static hasMacro(string $name): bool
  1. v11.0.0 追加
    変更後
    @method static hasMacro(string $name): bool

isAllowedRequestUrl

v12.25.0 から

static @method

static isAllowedRequestUrl(string $url): bool
  1. v12.25.0 追加
    変更後
    @method static isAllowedRequestUrl(string $url): bool

macro

v11.0.0 以前から

static @method

static macro(string $name, object|callable $macro): void
  1. v11.0.0 追加
    変更後
    @method static macro(string $name, object|callable $macro): void
  2. v11.8.0 シグネチャ変更
    変更前
    @method static macro(string $name, object|callable $macro): void
    変更後
    @method static macro(string $name, object|callable $macro, object|callable $macro = null): void
  3. v11.23.3 シグネチャ変更
    変更前
    @method static macro(string $name, object|callable $macro, object|callable $macro = null): void
    変更後
    @method static macro(string $name, object|callable $macro): void

macroCall

v11.0.0 以前から

static @method

static macroCall(string $method, array $parameters): mixed
  1. v11.0.0 追加
    変更後
    @method static macroCall(string $method, array $parameters): mixed

maxRedirects

v11.0.0 以前から

static @method

static maxRedirects(int $max): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static maxRedirects(int $max): \Illuminate\Http\Client\PendingRequest

mergeOptions

v11.0.0 以前から

static @method

static mergeOptions(array ...$options): array
  1. v11.0.0 追加
    変更後
    @method static mergeOptions(array ...$options): array

mixin

v11.0.0 以前から

static @method

static mixin(object $mixin, bool $replace = true): void
  1. v11.0.0 追加
    変更後
    @method static mixin(object $mixin, bool $replace = true): void

patch

v11.0.0 以前から

static @method

static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static patch(string $url, array $data = []): \Illuminate\Http\Client\Response
  2. v12.3.0 シグネチャ変更
    変更前
    @method static patch(string $url, array $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
  3. v12.41.0 シグネチャ変更
    変更前
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  4. v12.43.0 シグネチャ変更
    変更前
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
  5. v12.44.0 シグネチャ変更
    変更前
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
    変更後
    @method static patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

pool

v11.0.0 以前から

static @method

static pool(callable $callback, int|null $concurrency = 0): array
  1. v11.0.0 追加
    変更後
    @method static pool(callable $callback): array
  2. v12.36.0 シグネチャ変更
    変更前
    @method static pool(callable $callback): array
    変更後
    @method static pool(callable $callback, int|null $concurrency = null): array
  3. v13.0.0 シグネチャ変更
    変更前
    @method static pool(callable $callback, int|null $concurrency = null): array
    変更後
    @method static pool(callable $callback, int|null $concurrency = 0): array
  4. v13.4.0 シグネチャ変更
    変更前
    @method static pool(callable $callback, int|null $concurrency = 0): array
    変更後
    @method static pool(callable $callback, int|null $concurrency = 0): array<array-key, \Illuminate\Http\Client\Response|\Throwable>
  5. v13.6.0 シグネチャ変更
    変更前
    @method static pool(callable $callback, int|null $concurrency = 0): array<array-key, \Illuminate\Http\Client\Response|\Throwable>
    変更後
    @method static pool(callable $callback, int|null $concurrency = 0): array

post

v11.0.0 以前から

static @method

static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static post(string $url, array $data = []): \Illuminate\Http\Client\Response
  2. v12.3.0 シグネチャ変更
    変更前
    @method static post(string $url, array $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
  3. v12.41.0 シグネチャ変更
    変更前
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  4. v12.43.0 シグネチャ変更
    変更前
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
  5. v12.44.0 シグネチャ変更
    変更前
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
    変更後
    @method static post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

preventingStrayRequests

v11.29.0 から

static @method

static preventingStrayRequests(): bool
  1. v11.29.0 追加
    変更後
    @method static preventingStrayRequests(): bool

preventStrayRequests

v11.0.0 以前から

static

static preventStrayRequests($prevent = true)
@param bool $prevent
@return \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    static preventStrayRequests() [@return \Illuminate\Http\Client\Factory]
  2. v11.37.0 シグネチャ変更
    変更前
    static preventStrayRequests() [@return \Illuminate\Http\Client\Factory]
    変更後
    static preventStrayRequests($prevent = true) [@param bool $prevent, @return \Illuminate\Http\Client\Factory]

psr7Response

v12.6.0 から

static @method

static psr7Response(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response
  1. v12.6.0 追加
    変更後
    @method static psr7Response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response
  2. v13.4.0 シグネチャ変更
    変更前
    @method static psr7Response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response
    変更後
    @method static psr7Response(array|string|null $body = null, int $status = 200, array<string, mixed> $headers = []): \GuzzleHttp\Psr7\Response
  3. v13.6.0 シグネチャ変更
    変更前
    @method static psr7Response(array|string|null $body = null, int $status = 200, array<string, mixed> $headers = []): \GuzzleHttp\Psr7\Response
    変更後
    @method static psr7Response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response
  4. v13.22.0 シグネチャ変更
    変更前
    @method static psr7Response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response
    変更後
    @method static psr7Response(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Psr7\Response

pushHandlers

v11.0.0 以前から

static @method

static pushHandlers(\GuzzleHttp\HandlerStack $handlerStack): \GuzzleHttp\HandlerStack
  1. v11.0.0 追加
    変更後
    @method static pushHandlers(\GuzzleHttp\HandlerStack $handlerStack): \GuzzleHttp\HandlerStack

put

v11.0.0 以前から

static @method

static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static put(string $url, array $data = []): \Illuminate\Http\Client\Response
  2. v12.3.0 シグネチャ変更
    変更前
    @method static put(string $url, array $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
  3. v12.41.0 シグネチャ変更
    変更前
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response
    変更後
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  4. v12.43.0 シグネチャ変更
    変更前
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
  5. v12.44.0 シグネチャ変更
    変更前
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): void
    変更後
    @method static put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

query

v13.19.0 から

static @method

static query(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
  1. v13.19.0 追加
    変更後
    @method static query(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = []): \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface

record

v12.1.0 から

static @method

static record(): \Illuminate\Http\Client\Factory
  1. v12.1.0 追加
    変更後
    @method static record(): \Illuminate\Http\Client\Factory

recorded

v11.0.0 以前から

static @method

static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    @method static recorded(callable $callback = null): \Illuminate\Support\Collection
  2. v12.14.0 シグネチャ変更
    変更前
    @method static recorded(callable $callback = null): \Illuminate\Support\Collection
    変更後
    @method static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection
  3. v13.4.0 シグネチャ変更
    変更前
    @method static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection
    変更後
    @method static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection<int, array>
  4. v13.6.0 シグネチャ変更
    変更前
    @method static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection<int, array>
    変更後
    @method static recorded(\Closure|callable $callback = null): \Illuminate\Support\Collection

recordRequestResponsePair

v11.0.0 以前から

static @method

static recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response|null $response): void
  1. v11.0.0 追加
    変更後
    @method static recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response $response): void
  2. v11.33.0 シグネチャ変更
    変更前
    @method static recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response $response): void
    変更後
    @method static recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response|null $response): void

replaceHeaders

v11.0.0 以前から

static @method

static replaceHeaders(array $headers): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static replaceHeaders(array $headers): \Illuminate\Http\Client\PendingRequest

requestException

v12.6.0 から

v12.8.1 で削除

  1. v12.6.0 追加
    変更後
    @method static requestException(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException
  2. v12.8.1 削除
    変更前
    @method static requestException(array|string|null $body = null, int $status = 200, array $headers = []): \Illuminate\Http\Client\RequestException

response

v11.0.0 以前から

static @method

static response(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Promise\PromiseInterface
  1. v11.0.0 追加
    変更後
    @method static response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Promise\PromiseInterface
  2. v13.22.0 シグネチャ変更
    変更前
    @method static response(array|string|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Promise\PromiseInterface
    変更後
    @method static response(\Psr\Http\Message\StreamInterface|array|string|resource|null $body = null, int $status = 200, array $headers = []): \GuzzleHttp\Promise\PromiseInterface

retry

v11.0.0 以前から

static @method

static retry(array|int $times, \Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static retry(array|int $times, \Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true): \Illuminate\Http\Client\PendingRequest

runBeforeSendingCallbacks

v11.0.0 以前から

static @method

static runBeforeSendingCallbacks(\Psr\Http\Message\RequestInterface $request, array $options): \Psr\Http\Message\RequestInterface
  1. v11.0.0 追加
    変更後
    @method static runBeforeSendingCallbacks(\GuzzleHttp\Psr7\RequestInterface $request, array $options): \GuzzleHttp\Psr7\RequestInterface
  2. v12.44.0 シグネチャ変更
    変更前
    @method static runBeforeSendingCallbacks(\GuzzleHttp\Psr7\RequestInterface $request, array $options): \GuzzleHttp\Psr7\RequestInterface
    変更後
    @method static runBeforeSendingCallbacks(\Psr\Http\Message\RequestInterface $request, array $options): \Psr\Http\Message\RequestInterface

send

v11.0.0 以前から

static @method

static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response|\Illuminate\Http\Client\Promises\LazyPromise
  1. v11.0.0 追加
    変更後
    @method static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response
  2. v12.42.0 シグネチャ変更
    変更前
    @method static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response
    変更後
    @method static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response|\Illuminate\Http\Client\Promises\LazyPromise
  3. v12.43.0 シグネチャ変更
    変更前
    @method static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response|\Illuminate\Http\Client\Promises\LazyPromise
    変更後
    @method static send(string $method, string $url, array $options = []): void
  4. v12.44.0 シグネチャ変更
    変更前
    @method static send(string $method, string $url, array $options = []): void
    変更後
    @method static send(string $method, string $url, array $options = []): \Illuminate\Http\Client\Response|\Illuminate\Http\Client\Promises\LazyPromise

sequence

v11.0.0 以前から

static @method

static sequence(array $responses = []): \Illuminate\Http\Client\ResponseSequence
  1. v11.0.0 追加
    変更後
    @method static sequence(array $responses = []): \Illuminate\Http\Client\ResponseSequence

setClient

v11.0.0 以前から

static @method

static setClient(\GuzzleHttp\Client $client): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static setClient(\GuzzleHttp\Client $client): \Illuminate\Http\Client\PendingRequest

setHandler

v11.0.0 以前から

static @method

static setHandler(callable $handler): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static setHandler(callable $handler): \Illuminate\Http\Client\PendingRequest

sink

v11.0.0 以前から

static @method

static sink(string|resource $to): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static sink(string|resource $to): \Illuminate\Http\Client\PendingRequest

stub

v11.0.0 以前から

static @method

static stub(callable $callback): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static stub(callable $callback): \Illuminate\Http\Client\PendingRequest

stubUrl

v11.0.0 以前から

static

static stubUrl($url, $callback)
@param string $url
@param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
@return \Illuminate\Http\Client\Factory
  1. v11.0.0 追加
    変更後
    static stubUrl($url, $callback) [@param string $url, @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback, @return \Illuminate\Http\Client\Factory]

throw

v11.0.0 以前から

static @method

static throw(callable|null $callback = null): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static throw(callable|null $callback = null): \Illuminate\Http\Client\PendingRequest

throwIf

v11.0.0 以前から

static @method

static throwIf(callable|bool $condition): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static throwIf(callable|bool $condition, callable|null $throwCallback = null): \Illuminate\Http\Client\PendingRequest
  2. v11.3.0 シグネチャ変更
    変更前
    @method static throwIf(callable|bool $condition, callable|null $throwCallback = null): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static throwIf(callable|bool $condition): \Illuminate\Http\Client\PendingRequest

throwUnless

v11.0.0 以前から

static @method

static throwUnless(callable|bool $condition): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static throwUnless(bool $condition): \Illuminate\Http\Client\PendingRequest
  2. v11.22.0 シグネチャ変更
    変更前
    @method static throwUnless(bool $condition): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static throwUnless(callable|bool $condition): \Illuminate\Http\Client\PendingRequest

timeout

v11.0.0 以前から

static @method

static timeout(int|float $seconds): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static timeout(int $seconds): \Illuminate\Http\Client\PendingRequest
  2. v11.35.1 シグネチャ変更
    変更前
    @method static timeout(int $seconds): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static timeout(int|float $seconds): \Illuminate\Http\Client\PendingRequest

truncateExceptionsAt

v12.18.0 から

static @method

static truncateExceptionsAt(int $length): \Illuminate\Http\Client\PendingRequest
  1. v12.18.0 追加
    変更後
    @method static truncateExceptionsAt(int $length): \Illuminate\Http\Client\PendingRequest
  2. v13.4.0 シグネチャ変更
    変更前
    @method static truncateExceptionsAt(int $length): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static truncateExceptionsAt(int<int, mixed> $length): \Illuminate\Http\Client\PendingRequest
  3. v13.6.0 シグネチャ変更
    変更前
    @method static truncateExceptionsAt(int<int, mixed> $length): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static truncateExceptionsAt(int $length): \Illuminate\Http\Client\PendingRequest

unless

v11.0.0 以前から

static @method

static unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Http\Client\PendingRequest|mixed
  1. v11.0.0 追加
    変更後
    @method static unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Http\Client\PendingRequest|mixed

when

v11.0.0 以前から

static @method

static when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Http\Client\PendingRequest|mixed
  1. v11.0.0 追加
    変更後
    @method static when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Http\Client\PendingRequest|mixed

withAttributes

v12.42.0 から

static @method

static withAttributes(array $attributes): \Illuminate\Http\Client\PendingRequest
  1. v12.42.0 追加
    変更後
    @method static withAttributes(array $attributes): \Illuminate\Http\Client\PendingRequest
  2. v13.4.0 シグネチャ変更
    変更前
    @method static withAttributes(array $attributes): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static withAttributes(array<array-key, mixed> $attributes): \Illuminate\Http\Client\PendingRequest
  3. v13.6.0 シグネチャ変更
    変更前
    @method static withAttributes(array<array-key, mixed> $attributes): \Illuminate\Http\Client\PendingRequest
    変更後
    @method static withAttributes(array $attributes): \Illuminate\Http\Client\PendingRequest

withBasicAuth

v11.0.0 以前から

static @method

static withBasicAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withBasicAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest

withBody

v11.0.0 以前から

static @method

static withBody(\Psr\Http\Message\StreamInterface|string $content, string $contentType = 'application/json'): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withBody(\Psr\Http\Message\StreamInterface|string $content, string $contentType = 'application/json'): \Illuminate\Http\Client\PendingRequest

withCookies

v11.0.0 以前から

static @method

static withCookies(array $cookies, string $domain): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withCookies(array $cookies, string $domain): \Illuminate\Http\Client\PendingRequest

withDigestAuth

v11.0.0 以前から

static @method

static withDigestAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withDigestAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest

withHeader

v11.0.0 以前から

static @method

static withHeader(string $name, mixed $value): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withHeader(string $name, mixed $value): \Illuminate\Http\Client\PendingRequest

withHeaders

v11.0.0 以前から

static @method

static withHeaders(array $headers): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withHeaders(array $headers): \Illuminate\Http\Client\PendingRequest

withMiddleware

v11.0.0 以前から

static @method

static withMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest

withNtlmAuth

v12.22.0 から

static @method

static withNtlmAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest
  1. v12.22.0 追加
    変更後
    @method static withNtlmAuth(string $username, string $password): \Illuminate\Http\Client\PendingRequest

withOptions

v11.0.0 以前から

static @method

static withOptions(array $options): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withOptions(array $options): \Illuminate\Http\Client\PendingRequest

withoutGlobalConfiguration

v13.25.0 から

static @method

static withoutGlobalConfiguration(\Closure $callback): mixed
  1. v11.55.1 追加
    変更後
    @method static withoutGlobalConfiguration(\Closure $callback): mixed
  2. v12.0.0 削除
    変更前
    @method static withoutGlobalConfiguration(\Closure $callback): mixed
  3. v12.66.0 追加
    変更後
    @method static withoutGlobalConfiguration(\Closure $callback): mixed
  4. v13.0.0 削除
    変更前
    @method static withoutGlobalConfiguration(\Closure $callback): mixed
  5. v13.25.0 追加
    変更後
    @method static withoutGlobalConfiguration(\Closure $callback): mixed

withoutRedirecting

v11.0.0 以前から

static @method

static withoutRedirecting(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withoutRedirecting(): \Illuminate\Http\Client\PendingRequest

withoutVerifying

v11.0.0 以前から

static @method

static withoutVerifying(): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withoutVerifying(): \Illuminate\Http\Client\PendingRequest

withQueryParameters

v11.0.0 以前から

static @method

static withQueryParameters(array $parameters): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withQueryParameters(array $parameters): \Illuminate\Http\Client\PendingRequest

withRequestMiddleware

v11.0.0 以前から

static @method

static withRequestMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withRequestMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest

withResponseMiddleware

v11.0.0 以前から

static @method

static withResponseMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withResponseMiddleware(callable $middleware): \Illuminate\Http\Client\PendingRequest

withToken

v11.0.0 以前から

static @method

static withToken(string $token, string $type = 'Bearer'): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withToken(string $token, string $type = 'Bearer'): \Illuminate\Http\Client\PendingRequest

withUrlParameters

v11.0.0 以前から

static @method

static withUrlParameters(array $parameters = []): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withUrlParameters(array $parameters = []): \Illuminate\Http\Client\PendingRequest

withUserAgent

v11.0.0 以前から

static @method

static withUserAgent(string|bool $userAgent): \Illuminate\Http\Client\PendingRequest
  1. v11.0.0 追加
    変更後
    @method static withUserAgent(string|bool $userAgent): \Illuminate\Http\Client\PendingRequest