| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Support\Facades;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @method static \Illuminate\Routing\Route get(string $uri, array|string|callable|null $action = null)
|
|
|
7 |
* @method static \Illuminate\Routing\Route post(string $uri, array|string|callable|null $action = null)
|
|
|
8 |
* @method static \Illuminate\Routing\Route put(string $uri, array|string|callable|null $action = null)
|
|
|
9 |
* @method static \Illuminate\Routing\Route patch(string $uri, array|string|callable|null $action = null)
|
|
|
10 |
* @method static \Illuminate\Routing\Route delete(string $uri, array|string|callable|null $action = null)
|
|
|
11 |
* @method static \Illuminate\Routing\Route options(string $uri, array|string|callable|null $action = null)
|
|
|
12 |
* @method static \Illuminate\Routing\Route any(string $uri, array|string|callable|null $action = null)
|
|
|
13 |
* @method static \Illuminate\Routing\Route fallback(array|string|callable|null $action)
|
|
|
14 |
* @method static \Illuminate\Routing\Route redirect(string $uri, string $destination, int $status = 302)
|
|
|
15 |
* @method static \Illuminate\Routing\Route permanentRedirect(string $uri, string $destination)
|
|
|
16 |
* @method static \Illuminate\Routing\Route view(string $uri, string $view, array $data = [], int|array $status = 200, array $headers = [])
|
|
|
17 |
* @method static \Illuminate\Routing\Route match(array|string $methods, string $uri, array|string|callable|null $action = null)
|
|
|
18 |
* @method static void resources(array $resources, array $options = [])
|
|
|
19 |
* @method static \Illuminate\Routing\PendingResourceRegistration resource(string $name, string $controller, array $options = [])
|
|
|
20 |
* @method static void apiResources(array $resources, array $options = [])
|
|
|
21 |
* @method static \Illuminate\Routing\PendingResourceRegistration apiResource(string $name, string $controller, array $options = [])
|
|
|
22 |
* @method static void singletons(array $singletons, array $options = [])
|
|
|
23 |
* @method static \Illuminate\Routing\PendingSingletonResourceRegistration singleton(string $name, string $controller, array $options = [])
|
|
|
24 |
* @method static void apiSingletons(array $singletons, array $options = [])
|
|
|
25 |
* @method static \Illuminate\Routing\PendingSingletonResourceRegistration apiSingleton(string $name, string $controller, array $options = [])
|
|
|
26 |
* @method static \Illuminate\Routing\Router group(array $attributes, \Closure|array|string $routes)
|
|
|
27 |
* @method static array mergeWithLastGroup(array $new, bool $prependExistingPrefix = true)
|
|
|
28 |
* @method static string getLastGroupPrefix()
|
|
|
29 |
* @method static \Illuminate\Routing\Route addRoute(array|string $methods, string $uri, array|string|callable|null $action)
|
|
|
30 |
* @method static \Illuminate\Routing\Route newRoute(array|string $methods, string $uri, mixed $action)
|
|
|
31 |
* @method static \Symfony\Component\HttpFoundation\Response respondWithRoute(string $name)
|
|
|
32 |
* @method static \Symfony\Component\HttpFoundation\Response dispatch(\Illuminate\Http\Request $request)
|
|
|
33 |
* @method static \Symfony\Component\HttpFoundation\Response dispatchToRoute(\Illuminate\Http\Request $request)
|
|
|
34 |
* @method static array gatherRouteMiddleware(\Illuminate\Routing\Route $route)
|
|
|
35 |
* @method static array resolveMiddleware(array $middleware, array $excluded = [])
|
|
|
36 |
* @method static \Symfony\Component\HttpFoundation\Response prepareResponse(\Symfony\Component\HttpFoundation\Request $request, mixed $response)
|
|
|
37 |
* @method static \Symfony\Component\HttpFoundation\Response toResponse(\Symfony\Component\HttpFoundation\Request $request, mixed $response)
|
|
|
38 |
* @method static \Illuminate\Routing\Route substituteBindings(\Illuminate\Routing\Route $route)
|
|
|
39 |
* @method static void substituteImplicitBindings(\Illuminate\Routing\Route $route)
|
|
|
40 |
* @method static void matched(string|callable $callback)
|
|
|
41 |
* @method static array getMiddleware()
|
|
|
42 |
* @method static \Illuminate\Routing\Router aliasMiddleware(string $name, string $class)
|
|
|
43 |
* @method static bool hasMiddlewareGroup(string $name)
|
|
|
44 |
* @method static array getMiddlewareGroups()
|
|
|
45 |
* @method static \Illuminate\Routing\Router middlewareGroup(string $name, array $middleware)
|
|
|
46 |
* @method static \Illuminate\Routing\Router prependMiddlewareToGroup(string $group, string $middleware)
|
|
|
47 |
* @method static \Illuminate\Routing\Router pushMiddlewareToGroup(string $group, string $middleware)
|
|
|
48 |
* @method static \Illuminate\Routing\Router removeMiddlewareFromGroup(string $group, string $middleware)
|
|
|
49 |
* @method static \Illuminate\Routing\Router flushMiddlewareGroups()
|
|
|
50 |
* @method static void bind(string $key, string|callable $binder)
|
|
|
51 |
* @method static void model(string $key, string $class, \Closure|null $callback = null)
|
|
|
52 |
* @method static \Closure|null getBindingCallback(string $key)
|
|
|
53 |
* @method static array getPatterns()
|
|
|
54 |
* @method static void pattern(string $key, string $pattern)
|
|
|
55 |
* @method static void patterns(array $patterns)
|
|
|
56 |
* @method static bool hasGroupStack()
|
|
|
57 |
* @method static array getGroupStack()
|
|
|
58 |
* @method static mixed input(string $key, string|null $default = null)
|
|
|
59 |
* @method static \Illuminate\Http\Request getCurrentRequest()
|
|
|
60 |
* @method static \Illuminate\Routing\Route|null getCurrentRoute()
|
|
|
61 |
* @method static \Illuminate\Routing\Route|null current()
|
|
|
62 |
* @method static bool has(string|array $name)
|
|
|
63 |
* @method static string|null currentRouteName()
|
|
|
64 |
* @method static bool is(mixed ...$patterns)
|
|
|
65 |
* @method static bool currentRouteNamed(mixed ...$patterns)
|
|
|
66 |
* @method static string|null currentRouteAction()
|
|
|
67 |
* @method static bool uses(array ...$patterns)
|
|
|
68 |
* @method static bool currentRouteUses(string $action)
|
|
|
69 |
* @method static void singularResourceParameters(bool $singular = true)
|
|
|
70 |
* @method static void resourceParameters(array $parameters = [])
|
|
|
71 |
* @method static array|null resourceVerbs(array $verbs = [])
|
|
|
72 |
* @method static \Illuminate\Routing\RouteCollectionInterface getRoutes()
|
|
|
73 |
* @method static void setRoutes(\Illuminate\Routing\RouteCollection $routes)
|
|
|
74 |
* @method static void setCompiledRoutes(array $routes)
|
|
|
75 |
* @method static array uniqueMiddleware(array $middleware)
|
|
|
76 |
* @method static \Illuminate\Routing\Router setContainer(\Illuminate\Container\Container $container)
|
|
|
77 |
* @method static void macro(string $name, object|callable $macro)
|
|
|
78 |
* @method static void mixin(object $mixin, bool $replace = true)
|
|
|
79 |
* @method static bool hasMacro(string $name)
|
|
|
80 |
* @method static void flushMacros()
|
|
|
81 |
* @method static mixed macroCall(string $method, array $parameters)
|
|
|
82 |
* @method static \Illuminate\Routing\RouteRegistrar attribute(string $key, mixed $value)
|
|
|
83 |
* @method static \Illuminate\Routing\RouteRegistrar whereAlpha(array|string $parameters)
|
|
|
84 |
* @method static \Illuminate\Routing\RouteRegistrar whereAlphaNumeric(array|string $parameters)
|
|
|
85 |
* @method static \Illuminate\Routing\RouteRegistrar whereNumber(array|string $parameters)
|
|
|
86 |
* @method static \Illuminate\Routing\RouteRegistrar whereUlid(array|string $parameters)
|
|
|
87 |
* @method static \Illuminate\Routing\RouteRegistrar whereUuid(array|string $parameters)
|
|
|
88 |
* @method static \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
|
|
|
89 |
* @method static \Illuminate\Routing\RouteRegistrar as(string $value)
|
|
|
90 |
* @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
|
|
|
91 |
* @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
|
|
|
92 |
* @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
|
|
|
93 |
* @method static \Illuminate\Routing\RouteRegistrar name(string $value)
|
|
|
94 |
* @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
|
|
|
95 |
* @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
|
|
|
96 |
* @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
|
|
|
97 |
* @method static \Illuminate\Routing\RouteRegistrar where(array $where)
|
|
|
98 |
* @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
|
|
|
99 |
* @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
|
|
|
100 |
*
|
|
|
101 |
* @see \Illuminate\Routing\Router
|
|
|
102 |
*/
|
|
|
103 |
class Route extends Facade
|
|
|
104 |
{
|
|
|
105 |
/**
|
|
|
106 |
* Get the registered name of the component.
|
|
|
107 |
*
|
|
|
108 |
* @return string
|
|
|
109 |
*/
|
|
|
110 |
protected static function getFacadeAccessor()
|
|
|
111 |
{
|
|
|
112 |
return 'router';
|
|
|
113 |
}
|
|
|
114 |
}
|