protected function registerFixedMacro(Router $router)
{
$fixedMacro = function ($key, Closure $callback, $routeOptions = null) {
$newKey = str_replace('@', '/', $key);
$attributes = ['prefix' => config('xe.routing.fixedPrefix') . '/' . $newKey];
if ($routeOptions !== null and is_array($routeOptions)) {
$routeOptions = array_except($routeOptions, ['prefix']);
$attributes = array_merge($attributes, $routeOptions);
}
$this->group($attributes, $callback);
};
$router->macro('fixed', $fixedMacro);
}