Route.php 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Routing\Route get(string $uri, \Closure|array|string|null $action = null)
  5. * @method static \Illuminate\Routing\Route post(string $uri, \Closure|array|string|null $action = null)
  6. * @method static \Illuminate\Routing\Route put(string $uri, \Closure|array|string|null $action = null)
  7. * @method static \Illuminate\Routing\Route delete(string $uri, \Closure|array|string|null $action = null)
  8. * @method static \Illuminate\Routing\Route patch(string $uri, \Closure|array|string|null $action = null)
  9. * @method static \Illuminate\Routing\Route options(string $uri, \Closure|array|string|null $action = null)
  10. * @method static \Illuminate\Routing\Route any(string $uri, \Closure|array|string|null $action = null)
  11. * @method static \Illuminate\Routing\Route match(array|string $methods, string $uri, \Closure|array|string|null $action = null)
  12. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  13. * @method static \Illuminate\Routing\PendingResourceRegistration resource(string $name, string $controller, array $options = [])
  14. * @method static \Illuminate\Routing\PendingResourceRegistration apiResource(string $name, string $controller, array $options = [])
  15. * @method static void apiResources(array $resources)
  16. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  17. * @method static \Illuminate\Routing\Route substituteBindings(\Illuminate\Support\Facades\Route $route)
  18. * @method static void substituteImplicitBindings(\Illuminate\Support\Facades\Route $route)
  19. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  20. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  21. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  22. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  23. * @method static \Illuminate\Routing\Router|\Illuminate\Routing\RouteRegistrar group(array|\Closure|string $attributes, \Closure|string $routes)
  24. * @method static \Illuminate\Routing\Route redirect(string $uri, string $destination, int $status = 301)
  25. * @method static \Illuminate\Routing\Route view(string $uri, string $view, array $data = [])
  26. * @method static void bind(string $key, string|callable $binder)
  27. * @method static \Illuminate\Routing\Route current()
  28. * @method static string|null currentRouteName()
  29. * @method static string|null currentRouteAction()
  30. *
  31. * @see \Illuminate\Routing\Router
  32. */
  33. class Route extends Facade
  34. {
  35. /**
  36. * Get the registered name of the component.
  37. *
  38. * @return string
  39. */
  40. protected static function getFacadeAccessor()
  41. {
  42. return 'router';
  43. }
  44. }