class PendingSingletonResourceRegistration (View source)
| CreatesRegularExpressionRouteConstraints | |
| Macroable |
| static protected array | $macros | The registered string macros. | from Macroable |
| protected ResourceRegistrar | $registrar | The resource registrar. | |
| protected string | $name | The resource name. | |
| protected string | $controller | The resource controller. | |
| protected array | $options | The resource options. | |
| protected bool | $registered | The resource's registration status. |
| $this | whereAlpha(array|string $parameters)
Specify that the given route parameters must be alphabetic. | from CreatesRegularExpressionRouteConstraints |
| $this | whereAlphaNumeric(array|string $parameters)
Specify that the given route parameters must be alphanumeric. | from CreatesRegularExpressionRouteConstraints |
| $this | whereNumber(array|string $parameters)
Specify that the given route parameters must be numeric. | from CreatesRegularExpressionRouteConstraints |
| $this | whereUlid(array|string $parameters)
Specify that the given route parameters must be ULIDs. | from CreatesRegularExpressionRouteConstraints |
| $this | whereUuid(array|string $parameters)
Specify that the given route parameters must be UUIDs. | from CreatesRegularExpressionRouteConstraints |
| $this | whereIn(array|string $parameters, array $values)
Specify that the given route parameters must be one of the given values. | from CreatesRegularExpressionRouteConstraints |
| $this | assignExpressionToParameters(array|string $parameters, string $expression)
Apply the given regular expression to the given parameters. | from CreatesRegularExpressionRouteConstraints |
| static void | macro(string $name, object|callable $macro)
Register a custom macro. | from Macroable |
| static void | mixin(object $mixin, bool $replace = true)
Mix another object into the class. | from Macroable |
| static bool | hasMacro(string $name)
Checks if macro is registered. | from Macroable |
| static void | flushMacros()
Flush the existing macros. | from Macroable |
| static mixed | __callStatic(string $method, array $parameters)
Dynamically handle calls to the class. | from Macroable |
| mixed | __call(string $method, array $parameters)
Dynamically handle calls to the class. | from Macroable |
| void | __construct(ResourceRegistrar $registrar, string $name, string $controller, array $options)
Create a new pending singleton resource registration instance. | |
| PendingSingletonResourceRegistration | only(array|string|mixed $methods)
Set the methods the controller should apply to. | |
| PendingSingletonResourceRegistration | except(array|string|mixed $methods)
Set the methods the controller should exclude. | |
| $this | creatable()
Indicate that the resource should have creation and storage routes. | |
| $this | destroyable()
Indicate that the resource should have a deletion route. | |
| PendingSingletonResourceRegistration | names(array|string $names)
Set the route names for controller actions. | |
| PendingSingletonResourceRegistration | name(string $method, string $name)
Set the route name for a controller action. | |
| PendingSingletonResourceRegistration | parameters(array|string $parameters)
Override the route parameter names. | |
| PendingSingletonResourceRegistration | parameter(string $previous, string $new)
Override a route parameter's name. | |
| PendingSingletonResourceRegistration | middleware(mixed $middleware)
Add middleware to the resource routes. | |
| $this|array | withoutMiddleware(array|string $middleware)
Specify middleware that should be removed from the resource routes. | |
| PendingSingletonResourceRegistration | where(mixed $wheres)
Add "where" constraints to the resource routes. | |
| RouteCollection | register()
Register the singleton resource route. | |
| void | __destruct()
Handle the object's destruction. |
Specify that the given route parameters must be alphabetic.
Specify that the given route parameters must be alphanumeric.
Specify that the given route parameters must be numeric.
Specify that the given route parameters must be ULIDs.
Specify that the given route parameters must be UUIDs.
Specify that the given route parameters must be one of the given values.
Apply the given regular expression to the given parameters.
Register a custom macro.
Mix another object into the class.
Checks if macro is registered.
Flush the existing macros.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Create a new pending singleton resource registration instance.
Set the methods the controller should apply to.
Set the methods the controller should exclude.
Indicate that the resource should have creation and storage routes.
Indicate that the resource should have a deletion route.
Set the route names for controller actions.
Set the route name for a controller action.
Override the route parameter names.
Override a route parameter's name.
Add middleware to the resource routes.
Specify middleware that should be removed from the resource routes.
Add "where" constraints to the resource routes.
Register the singleton resource route.
Handle the object's destruction.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Routing/PendingSingletonResourceRegistration.html