Response.php 2.4 KB

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