class TwillRoutes (View source)

Methods

string
getModuleRouteFromRegistry(string $module)

No description

void
addToRouteRegistry(string $slug, string $prefix)

Only useful for testing purposes.

void
buildModuleRoutes(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

void
registerRoutes(Router $router, $groupOptions, $middlewares, $supportSubdomainRouting, $namespace, $routesFile, $instant = false)

No description

void
registerRoutePatterns()

No description

array
getRouteGroupOptions()

No description

array
getRouteMiddleware($middleware = null)

No description

supportSubdomainRouting()

No description

void
registerCapsuleRoutes($router, Capsule $capsule)

No description

void
singleton(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

void
module(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

void
moduleShowWithPreview(string $moduleName, string $routePrefix = null, string $controllerName = null)

No description

Details

string getModuleRouteFromRegistry(string $module)

No description

Parameters

string $module

Return Value

string

void addToRouteRegistry(string $slug, string $prefix)

Only useful for testing purposes.

Parameters

string $slug
string $prefix

Return Value

void

void buildModuleRoutes(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

Parameters

string $slug
array $options
array $resource_options
bool $resource

Return Value

void

void registerRoutes(Router $router, $groupOptions, $middlewares, $supportSubdomainRouting, $namespace, $routesFile, $instant = false)

No description

Parameters

Router $router
$groupOptions
$middlewares
$supportSubdomainRouting
$namespace
$routesFile
$instant

Return Value

void

void registerRoutePatterns()

No description

Return Value

void

array getRouteGroupOptions()

No description

Return Value

array

array getRouteMiddleware($middleware = null)

No description

Parameters

$middleware

Return Value

array

supportSubdomainRouting()

No description

void registerCapsuleRoutes($router, Capsule $capsule)

No description

Parameters

$router
Capsule $capsule

Return Value

void

void singleton(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

Parameters

string $slug
array $options
array $resource_options
bool $resource

Return Value

void

void module(string $slug, array $options = [], array $resource_options = [], bool $resource = true)

No description

Parameters

string $slug
array $options
array $resource_options
bool $resource

Return Value

void

void moduleShowWithPreview(string $moduleName, string $routePrefix = null, string $controllerName = null)

No description

Parameters

string $moduleName
string $routePrefix
string $controllerName

Return Value

void