Response

Illuminate\Support\Facades\Response

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

download

v11.0.0 以前から

static @method

static download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment'): \Symfony\Component\HttpFoundation\BinaryFileResponse
  1. v11.0.0 追加
    変更後
    @method static download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment'): \Symfony\Component\HttpFoundation\BinaryFileResponse

eventStream

v11.42.1 から

static @method

static eventStream(\Closure $callback, array $headers = [], \Illuminate\Http\StreamedEvent|string|null $endStreamWith = '</stream>'): \Symfony\Component\HttpFoundation\StreamedResponse
  1. v11.42.1 追加
    変更後
    @method static eventStream(\Closure $callback, array $headers = [], string $endStreamWith = '</stream>'): \Symfony\Component\HttpFoundation\StreamedResponse
  2. v12.1.0 シグネチャ変更
    変更前
    @method static eventStream(\Closure $callback, array $headers = [], string $endStreamWith = '</stream>'): \Symfony\Component\HttpFoundation\StreamedResponse
    変更後
    @method static eventStream(\Closure $callback, array $headers = [], \Illuminate\Http\StreamedEvent|string|null $endStreamWith = '</stream>'): \Symfony\Component\HttpFoundation\StreamedResponse

file

v11.0.0 以前から

static @method

static file(\SplFileInfo|string $file, array $headers = []): \Symfony\Component\HttpFoundation\BinaryFileResponse
  1. v11.0.0 追加
    変更後
    @method static file(\SplFileInfo|string $file, array $headers = []): \Symfony\Component\HttpFoundation\BinaryFileResponse

flushMacros

v11.0.0 以前から

static @method

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

hasMacro

v11.0.0 以前から

static @method

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

json

v11.0.0 以前から

static @method

static json(mixed $data = [], int $status = 200, array $headers = [], int $options = 0): \Illuminate\Http\JsonResponse
  1. v11.0.0 追加
    変更後
    @method static json(mixed $data = [], int $status = 200, array $headers = [], int $options = 0): \Illuminate\Http\JsonResponse

jsonp

v11.0.0 以前から

static @method

static jsonp(string $callback, mixed $data = [], int $status = 200, array $headers = [], int $options = 0): \Illuminate\Http\JsonResponse
  1. v11.0.0 追加
    変更後
    @method static jsonp(string $callback, mixed $data = [], int $status = 200, array $headers = [], int $options = 0): \Illuminate\Http\JsonResponse

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

make

v11.0.0 以前から

static @method

static make(mixed $content = '', int $status = 200, array $headers = []): \Illuminate\Http\Response
  1. v11.0.0 追加
    変更後
    @method static make(mixed $content = '', int $status = 200, array $headers = []): \Illuminate\Http\Response

markdown

v13.35.0 から

static @method

static markdown(string $content = '', int $status = 200, array $headers = []): \Illuminate\Http\Response
  1. v13.35.0 追加
    変更後
    @method static markdown(string $content = '', int $status = 200, array $headers = []): \Illuminate\Http\Response

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

noContent

v11.0.0 以前から

static @method

static noContent(int $status = 204, array $headers = []): \Illuminate\Http\Response
  1. v11.0.0 追加
    変更後
    @method static noContent(int $status = 204, array $headers = []): \Illuminate\Http\Response

redirectGuest

v11.0.0 以前から

static @method

static redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse
  1. v11.0.0 追加
    変更後
    @method static redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse

redirectTo

v11.0.0 以前から

static @method

static redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse
  1. v11.0.0 追加
    変更後
    @method static redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse

redirectToAction

v11.0.0 以前から

static @method

static redirectToAction(array|string $action, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse
  1. v11.0.0 追加
    変更後
    @method static redirectToAction(array|string $action, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse

redirectToIntended

v11.0.0 以前から

static @method

static redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse
  1. v11.0.0 追加
    変更後
    @method static redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null): \Illuminate\Http\RedirectResponse

redirectToRoute

v11.0.0 以前から

static @method

static redirectToRoute(\BackedEnum|string $route, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse
  1. v11.0.0 追加
    変更後
    @method static redirectToRoute(string $route, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse
  2. v11.32.0 シグネチャ変更
    変更前
    @method static redirectToRoute(string $route, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse
    変更後
    @method static redirectToRoute(\BackedEnum|string $route, mixed $parameters = [], int $status = 302, array $headers = []): \Illuminate\Http\RedirectResponse

stream

v11.0.0 以前から

static @method

static stream(callable|null $callback, int $status = 200, array $headers = []): \Symfony\Component\HttpFoundation\StreamedResponse
  1. v11.0.0 追加
    変更後
    @method static stream(callable $callback, int $status = 200, array $headers = []): \Symfony\Component\HttpFoundation\StreamedResponse
  2. v12.16.0 シグネチャ変更
    変更前
    @method static stream(callable $callback, int $status = 200, array $headers = []): \Symfony\Component\HttpFoundation\StreamedResponse
    変更後
    @method static stream(callable|null $callback, int $status = 200, array $headers = []): \Symfony\Component\HttpFoundation\StreamedResponse

streamDownload

v11.0.0 以前から

static @method

static streamDownload(callable $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment'): \Symfony\Component\HttpFoundation\StreamedResponse
  1. v11.0.0 追加
    変更後
    @method static streamDownload(callable $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment'): \Symfony\Component\HttpFoundation\StreamedResponse

streamJson

v11.0.0 以前から

static @method

static streamJson(array $data, int $status = 200, array $headers = [], int $encodingOptions = 15): \Symfony\Component\HttpFoundation\StreamedJsonResponse
  1. v11.0.0 追加
    変更後
    @method static streamJson(array $data, int $status = 200, array $headers = [], int $encodingOptions = 15): \Symfony\Component\HttpFoundation\StreamedJsonResponse

view

v11.0.0 以前から

static @method

static view(string|array $view, array $data = [], int $status = 200, array $headers = []): \Illuminate\Http\Response
  1. v11.0.0 追加
    変更後
    @method static view(string|array $view, array $data = [], int $status = 200, array $headers = []): \Illuminate\Http\Response