Dingo\Api\Routing\Route::methods PHP Метод

methods() публичный Метод

Get the HTTP verbs the route responds to.
public methods ( ) : array
Результат array
    public function methods()
    {
        return $this->methods;
    }

Usage Example

Пример #1
0
 /**
  * Get the route information for a given route.
  *
  * @param  Route  $route
  * @return array
  */
 protected function getRouteInformation(Route $route)
 {
     $uri = implode('|', $route->methods()) . ' ' . preg_replace('/^\\//', '', $route->uri());
     return $this->filterRoute(array('host' => $route->domain(), 'uri' => $uri, 'name' => $route->getName(), 'action' => $route->getAction()['uses'], 'before' => '', 'after' => '', 'prefix' => 'api/' . $route->versions()[0], 'method' => $route->methods()[0]));
 }