public function addRoutesFromArray(array $routes)
    {
        foreach ($routes as $name => $route) {
            $this->addRouteFromArray($name, $route);
        }
        return $this;
    }
public function addRoutesFromArray(array $routes)
    {
        foreach ($routes as $name => $route) {
            $this->addRouteFromArray($name, $route);
        }
        return $this;
    }
public function addRoutesFromArray ( array $ routes ) { foreach ( $ routes as $ name => $ route ) { $ this -> addRouteFromArray ( $ name , $ route ) ; } return $ this ; }
Add an array of routes defined by array data to the router.

@param array $routes

@return $this
Add an array of routes defined by array data to the router .