public static
array
|
#
actions( string $name, string $controller, array $actions, array $options = [] )
Parameters
- $name
- $controller
- $actions
- Action templates.
- $options
The following options are available:
only : Only the routes specified are made.
except : The routes specified are excluded.
id_name : Name of the identifier property. Defaults to id .
id_regex : Regex of the identifier value. Defaults to \d+ .
as : Specifies the as option of the routes created.
Returns
array
|
public static
array
|
#
resource( string $name, string $controller, array $options = [] )
Makes route definitions for a resource.
Makes route definitions for a resource.
Parameters
- $name
- $controller
- $options
The following options are available:
only : Only the routes specified are made.
except : The routes specified are excluded.
id_name : Name of the identifier property. Defaults to id .
id_regex : Regex of the identifier value. Defaults to \d+ .
as : Specifies the as option of the routes created.
actions : Additional actions templates.
Returns
array
|
protected static
array
|
|
protected static
array
|
#
get_resource_actions( )
Returns default resource actions.
Returns default resource actions.
Returns
array
|
protected static
array
|
#
filter_actions( array $actions, array $options = [] )
Filters actions according to only/except options.
Filters actions according to only/except options.
Parameters
Returns
array
|
protected static
array
|
#
resolve_patterns( string $name, array $actions, array $options )
Replaces pattern placeholders.
Replaces pattern placeholders.
Parameters
Returns
array
|