Class LaravelUi5\Core\Http\Middleware\EnsureActionMethod

An action answers on the one method it declares. A request with any other method is refused with 405 Method Not Allowed and an Allow header naming the declared one — before the action's gate, its FormRequest and any transaction, so the handler is never reached.

Attached to the action route itself rather than to the configurable ui5.middleware stack, so every host gets it, and it holds for whichever dispatcher is bound to the route.

Methods