Response.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Contracts\Routing\ResponseFactory as ResponseFactoryContract;
  4. /**
  5. * @method static \Illuminate\Http\Response make(mixed $content = '', int $status = 200, array $headers = [])
  6. * @method static \Illuminate\Http\Response noContent(int $status = 204, array $headers = [])
  7. * @method static \Illuminate\Http\Response view(string|array $view, array $data = [], int $status = 200, array $headers = [])
  8. * @method static \Illuminate\Http\JsonResponse json(mixed $data = [], int $status = 200, array $headers = [], int $options = 0)
  9. * @method static \Illuminate\Http\JsonResponse jsonp(string $callback, mixed $data = [], int $status = 200, array $headers = [], int $options = 0)
  10. * @method static \Symfony\Component\HttpFoundation\StreamedResponse stream(callable $callback, int $status = 200, array $headers = [])
  11. * @method static \Symfony\Component\HttpFoundation\StreamedJsonResponse streamJson(array $data, int $status = 200, array $headers = [], int $encodingOptions = 15)
  12. * @method static \Symfony\Component\HttpFoundation\StreamedResponse streamDownload(callable $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')
  13. * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')
  14. * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse file(\SplFileInfo|string $file, array $headers = [])
  15. * @method static \Illuminate\Http\RedirectResponse redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null)
  16. * @method static \Illuminate\Http\RedirectResponse redirectToRoute(string $route, mixed $parameters = [], int $status = 302, array $headers = [])
  17. * @method static \Illuminate\Http\RedirectResponse redirectToAction(array|string $action, mixed $parameters = [], int $status = 302, array $headers = [])
  18. * @method static \Illuminate\Http\RedirectResponse redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null)
  19. * @method static \Illuminate\Http\RedirectResponse redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null)
  20. * @method static void macro(string $name, object|callable $macro)
  21. * @method static void mixin(object $mixin, bool $replace = true)
  22. * @method static bool hasMacro(string $name)
  23. * @method static void flushMacros()
  24. *
  25. * @see \Illuminate\Routing\ResponseFactory
  26. */
  27. class Response extends Facade
  28. {
  29. /**
  30. * Get the registered name of the component.
  31. *
  32. * @return string
  33. */
  34. protected static function getFacadeAccessor()
  35. {
  36. return ResponseFactoryContract::class;
  37. }
  38. }