ResourceRegistrar (Routing)
ResourceRegistrar
class ResourceRegistrar (View source)
Methods
void | __construct( Router $router) Create a new resource registrar instance. | |
void | register( string $name, string $controller, array $options = array()) Route a resource to a controller. | |
string | getResourceUri( string $resource) Get the base resource URI for a given resource. | |
string | getResourceWildcard( string $value) Format a resource wildcard for usage. |
Details
void __construct( Router $router)
Create a new resource registrar instance.
void register( string $name, string $controller, array $options = array())
Route a resource to a controller.
string getResourceUri( string $resource)
Get the base resource URI for a given resource.
string getResourceWildcard( string $value)
Format a resource wildcard for usage.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Routing/ResourceRegistrar.html