PHP Class Polyglot\Services\Router

Inheritance: extends Illuminate\Routing\Router
Show file Open project: anahkiasen/polyglot

Public Methods

Method Description
getRoutesPrefix ( $group = [] ) : array Get the correct route prefix to use
groupLocale ( array $group, Closure $callback = null ) : Closure Create a localized route group

Method Details

getRoutesPrefix() public method

Get the correct route prefix to use
public getRoutesPrefix ( $group = [] ) : array
return array

groupLocale() public method

Create a localized route group
public groupLocale ( array $group, Closure $callback = null ) : Closure
$group array
$callback Closure
return Closure