Response.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 eventStream(\Closure $callback, array $headers = [], \Illuminate\Http\StreamedEvent|string|null $endStreamWith = '</stream>')
  11. * @method static \Symfony\Component\HttpFoundation\StreamedResponse stream(callable|null $callback, int $status = 200, array $headers = [])
  12. * @method static \Symfony\Component\HttpFoundation\StreamedJsonResponse streamJson(array $data, int $status = 200, array $headers = [], int $encodingOptions = 15)
  13. * @method static \Symfony\Component\HttpFoundation\StreamedResponse streamDownload(callable $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')
  14. * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment')
  15. * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse file(\SplFileInfo|string $file, array $headers = [])
  16. * @method static \Illuminate\Http\RedirectResponse redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null)
  17. * @method static \Illuminate\Http\RedirectResponse redirectToRoute(\BackedEnum|string $route, mixed $parameters = [], int $status = 302, array $headers = [])
  18. * @method static \Illuminate\Http\RedirectResponse redirectToAction(array|string $action, mixed $parameters = [], int $status = 302, array $headers = [])
  19. * @method static \Illuminate\Http\RedirectResponse redirectGuest(string $path, int $status = 302, array $headers = [], bool|null $secure = null)
  20. * @method static \Illuminate\Http\RedirectResponse redirectToIntended(string $default = '/', int $status = 302, array $headers = [], bool|null $secure = null)
  21. * @method static void macro(string $name, object|callable $macro)
  22. * @method static void mixin(object $mixin, bool $replace = true)
  23. * @method static bool hasMacro(string $name)
  24. * @method static void flushMacros()
  25. *
  26. * @see \Illuminate\Routing\ResponseFactory
  27. */
  28. class Response extends Facade
  29. {
  30. /**
  31. * Get the registered name of the component.
  32. *
  33. * @return string
  34. */
  35. protected static function getFacadeAccessor()
  36. {
  37. return ResponseFactoryContract::class;
  38. }
  39. }