Documentation

PendingResourceRegistration
in package

Table of Contents

$controller  : string
The resource controller.
$name  : string
The resource name.
$options  : array<string|int, mixed>
The resource options.
$registrar  : ResourceRegistrar
The resource registrar.
__construct()  : void
Create a new pending resource registration instance.
__destruct()  : void
Handle the object's destruction.
except()  : PendingResourceRegistration
Set the methods the controller should exclude.
middleware()  : PendingResourceRegistration
Set a middleware to the resource.
name()  : PendingResourceRegistration
Set the route name for a controller action.
names()  : PendingResourceRegistration
Set the route names for controller actions.
only()  : PendingResourceRegistration
Set the methods the controller should apply to.
parameter()  : PendingResourceRegistration
Override a route parameter's name.
parameters()  : PendingResourceRegistration
Override the route parameter names.

Properties

Methods

__construct()

Create a new pending resource registration instance.

public __construct(ResourceRegistrar $registrar, string $name, string $controller, array<string|int, mixed> $options) : void
Parameters
$registrar : ResourceRegistrar
$name : string
$controller : string
$options : array<string|int, mixed>
Return values
void

Search results