ResourceRegistrar

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 parameter for usage.

static void singularParameters(bool $singular = true)

Set or unset the unmapped global parameters to singular.

static array getParameters()

Get the global parameter map.

static void setParameters(array $parameters = array())

Set the global parameter mapping.

doc_Laravel
2016-11-02 16:36:13
Comments
Leave a Comment

Please login to continue.