public function mapFrontendBaseRoutes()
    {
        $projectConfig = Config::get('project');
        $baseFile = base_path('routes/base.php');

        \Route::group(
            [
            'middleware' => $this->middleware['frontend'],
            ], function () use ($baseFile) {
                include $baseFile;
            }
        );


        // Find base route
        // getByName() method is currently not working for any strange reason
        $baseRoute = null;
        foreach(Route::getRoutes() as $route){
            if($route->getName() == 'base.homepage') {
                $baseRoute = $route;
                break;
            }
        }

        if($baseRoute && $projectConfig['multilanguage']) {
            // Only proced base route that has translate as a middleware
            // base.homepage routes is handled in a separate method, for language purposes
            if($baseRoute->getName() == 'base.homepage' && in_array("translate", $baseRoute->middleware())) {
                foreach(Language::all() as $language){
                    // Create default language routes
                    $newRoute = Route::get($baseRoute->uri().'/'.$language->slug, $baseRoute->getActionName());

                    //set name
                    $newRoute->name($baseRoute->getName().'.'.$language->slug);

                    //set wheres
                    foreach($baseRoute->wheres as $key=>$value){
                        $newRoute->where($key, $value);
                    }

                    //set middleware
                    $newRoute->middleware($baseRoute->middleware());

                }
            }
        }

        return $this;
    }