src/Dispatcher.php
protected function findResourceRoutable(Resolver $resolver)
    {
        $verb      = $resolver->getVerb();
        $swappable = [
            'post'   => 'store',
            'put'    => 'update',
            'patch'  => 'update',
            'delete' => 'destroy',
        ];

        if (! isset($swappable[$verb])) {
            $action = $this->getAlternativeResourceAction($resolver);
        } else {
            $action = $swappable[$verb];
        }

        $parameters = array_values($resolver->getSegments());

        return [$action, $parameters];
    }
protected function findResourceRoutable(Resolver $resolver)
    {
        $verb      = $resolver->getVerb();
        $swappable = [
            'post'   => 'store',
            'put'    => 'update',
            'patch'  => 'update',
            'delete' => 'destroy',
        ];

        if (! isset($swappable[$verb])) {
            $action = $this->getAlternativeResourceAction($resolver);
        } else {
            $action = $swappable[$verb];
        }

        $parameters = array_values($resolver->getSegments());

        return [$action, $parameters];
    }
Resolve action from resource controller.

@param  \Orchestra\Resources\Resolver  $resolver

@return array