Пример #1
0
 /**
  * Add a route to the underlying route collection.
  *
  * @param  array|string  $methods
  * @param  string  $uri
  * @param  \Closure|array|string  $action
  * @return \Nova\Routing\Route
  */
 protected function addRoute($methods, $uri, $action)
 {
     return $this->routes->add($this->createRoute($methods, $uri, $action));
 }
Пример #2
0
 /**
  * Add a route to the underlying route collection.
  *
  * @param  array|string  $methods
  * @param  string  $uri
  * @param  \Closure|array|string  $action
  * @return \Nova\Routing\Route
  */
 protected function addRoute($methods, $route, $action = null)
 {
     $route = $this->createRoute($methods, $route, $action);
     // Add the current Route instance to the known Routes list.
     return $this->routes->add($route);
 }