public static function routes(Router $router, array $files = null)
    {
        $files = $files ? $files : Kernel::config('route.files');

        foreach ($files as $file) {
            $router->load(path(true, $file));
        }

        return $router;
    }
public static function routes(Router $router, array $files = null)
    {
        $files = $files ? $files : Kernel::config('route.files');

        foreach ($files as $file) {
            $router->load(path(true, $file));
        }

        return $router;
    }
public static function routes ( Router $ router , array $ files = null ) { $ files = $ files ? $ files : Kernel :: config ( 'route.files' ) ; foreach ( $ files as $ file ) { $ router -> load ( path ( true , $ file ) ) ; } return $ router ; }
Load the routes of project

@param Router $router The router what will be used
@param array $files (null) If not informe will be used "route.files"
@return Router Object with the routes loaded in
@throws SimplesRunTimeError
Load the routes of project