프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$methods | array | All of the resource controller methods. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
protected buildPaths ( ) : void | ||
리턴 | void |
protected getClassMiddlewareForPath ( |
||
$path | ||
리턴 | array |
protected getIncludedMethods ( ) : array | ||
리턴 | array |
protected getMiddleware ( |
||
$path | ||
리턴 | array |
public getPaths ( ) : array[AbstractPath] | ||
리턴 | array[AbstractPath] |
protected getTemplate ( ) : string | ||
리턴 | string |
public toRouteDefinition ( ) : string | ||
리턴 | string |
public array $classMiddleware | ||
리턴 | array |
public array $middleware | ||
리턴 | array |
public array[ResourcePath] $paths | ||
리턴 | array[ResourcePath] |