Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.47 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.47 KB

vperyod.method-handler

Method override handler

Latest version Build Status Coverage Status Quality Score

Installation

composer require vperyod/method-handler

Usage

// Create handler with Auth and ResumeService instance
$handler = new Vperyod\MethodHandler\MethodHandler();

// Add to your middleware stack, radar, relay, etc.
$stack->middleware($handler);

// In your views generating forms, you can use the Helper to generate an
// appropriate hidden input.
$helper = new Vperyod\MethodHandler\MethodOverrideHelper;

echo $helper('PUT');
// <input type="hidden" name="__method_overide" value="PUT" />