src/app/CoreProvider.php
protected function routesRegister(string $file, string $namespace)
    {
        $this->app->router->group([
            'namespace' => $namespace,
        ], function ($router) use ($file) {
            require $file;
        });
    }
protected function routesRegister(string $file, string $namespace)
    {
        $this->app->router->group([
            'namespace' => $namespace,
        ], function ($router) use ($file) {
            require $file;
        });
    }
protected function routesRegister ( string $ file , string $ namespace ) { $ this -> app -> router -> group ( [ 'namespace' => $ namespace , ] , function ( $ router ) use ( $ file ) { require $ file ; } ) ; }
Register routes in system.

@param string $file Path to file with routes. (Full path)
@param string $namespace Namespace to controllers for execute actions
@return void
Register routes in system .