Property | Type | Description | |
---|---|---|---|
$classMiddleware | array | The class level "inherited" middleware that apply to the resource. | |
$except | array | The methods that should not be included. | |
$middleware | array | This array is keyed by resource method name (index, create, etc). | |
$name | string | The name of the resource. | |
$names | array | The array of route names for the resource. | |
$only | array | The only methods that should be included. | |
$paths | array[ResourcePath] | This corresponds to a path for each applicable resource method. | |
$reflection | ReflectionClass | The ReflectionClass instance for the controller class. |
Property | Type | Description | |
---|---|---|---|
$methods | array | All of the resource controller methods. |
Method | Description | |
---|---|---|
__construct ( array $attributes = [] ) : void | Create a new route definition instance. | |
getPaths ( ) : array[AbstractPath] | Get all of the path definitions for an endpoint. | |
hasPaths ( ) : boolean | Determine if the endpoint has any paths. | |
toRouteDefinition ( ) : string | Transform the endpoint into a route definition. |
Method | Description | |
---|---|---|
buildPaths ( ) : void | Build all of the paths for the resource endpoint. | |
getClassMiddlewareForPath ( |
Get the class middleware for the given path. | |
getIncludedMethods ( ) : array | Get the methods to be included in the resource. | |
getMiddleware ( |
Get all of the middleware for the given path. | |
getNames ( |
Get the names for the given path. | |
getTemplate ( ) : string | Get the template for the endpoint. |
public __construct ( array $attributes = [] ) : void | ||
$attributes | array | |
return | void |
protected buildPaths ( ) : void | ||
return | void |
protected getClassMiddlewareForPath ( |
||
$path | ||
return | array |
protected getIncludedMethods ( ) : array | ||
return | array |
protected getMiddleware ( |
||
$path | ||
return | array |
public getPaths ( ) : array[AbstractPath] | ||
return | array[AbstractPath] |
protected getTemplate ( ) : string | ||
return | string |
public toRouteDefinition ( ) : string | ||
return | string |
public array $classMiddleware | ||
return | array |
public array $except | ||
return | array |
protected array $methods | ||
return | array |
public array $middleware | ||
return | array |
public array $names | ||
return | array |
public array[ResourcePath] $paths | ||
return | array[ResourcePath] |