PendingResourceRegistration
Uses
Properties
$name string
The resource name.
$controller string
The resource controller.
$options array
The resource options.
$registered bool
The resource's registration status.
Methods
__construct ( ResourceRegistrar $registrar , $name , $controller , array $options ) : void
Create a new pending resource registration instance.
Parameters
- $registrar ResourceRegistrar
- $name string
- $controller string
- $options array
only ( $methods ) : PendingResourceRegistration
Set the methods the controller should apply to.
Parameters
- $methods array|string|mixed
except ( $methods ) : PendingResourceRegistration
Set the methods the controller should exclude.
Parameters
- $methods array|string|mixed
names ( $names ) : PendingResourceRegistration
Set the route names for controller actions.
Parameters
- $names array|string
name ( $method , $name ) : PendingResourceRegistration
Set the route name for a controller action.
Parameters
- $method string
- $name string
parameters ( $parameters ) : PendingResourceRegistration
Override the route parameter names.
Parameters
- $parameters array|string
parameter ( $previous , $new ) : PendingResourceRegistration
Override a route parameter's name.
Parameters
- $previous string
- $new string
middleware ( $middleware ) : PendingResourceRegistration
Add middleware to the resource routes.
Parameters
- $middleware mixed
withoutMiddleware ( $middleware ) : $this|array
Specify middleware that should be removed from the resource routes.
Parameters
- $middleware array|string
where ( $wheres ) : PendingResourceRegistration
Add "where" constraints to the resource routes.
Parameters
- $wheres mixed
shallow ( $shallow ) : PendingResourceRegistration
Indicate that the resource routes should have "shallow" nesting.
Parameters
- $shallow bool
missing ( $callback ) : $this
Define the callable that should be invoked on a missing model exception.
Parameters
- $callback callable
scoped ( array $fields ) : PendingResourceRegistration
Indicate that the resource routes should be scoped using the given binding fields.
Parameters
- $fields array
withTrashed ( array $methods ) : PendingResourceRegistration
Define which routes should allow "trashed" models to be retrieved when resolving implicit model bindings.
Parameters
- $methods array
__destruct ( ) : void
Handle the object's destruction.