Adamgoose\Routing\Annotations\ResourcePath::getVerb PHP Method

getVerb() protected method

Get the verb for the given resource method.
protected getVerb ( string $method ) : string
$method string
return string
    protected function getVerb($method)
    {
        switch ($method) {
            case 'index':
            case 'create':
            case 'show':
            case 'edit':
                return 'get';
            case 'store':
                return 'post';
            case 'update':
                return 'put';
            case 'destroy':
                return 'delete';
        }
    }