ifnot / method-spoofing
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (1.1) of this package.
1.1
2017-03-10 10:59 UTC
Requires
- php: >=5.4.0
- illuminate/support: ~5
This package is auto-updated.
Last update: 2020-02-05 23:24:12 UTC
README
Laravel only handle http method spoofing on posted forms HTTP POST
. This package allows you to spoof method on every kind of request
(the hidden goal is to allows you to make POST
request from a GET
request like JSONP
)
Installation
Install the package with composer :
composer require ifnot/method-spoofing
Require the service provider on Laravel 5.x
In the config/app/php
, add to the end of your providers :
Ifnot\MethodSpoofing\MethodSpoofingServiceProvider::class
Require the service provider on Lumen 5.x
In the bootstrap/app.php
, add to the Register Service Provider
section :
$app->register(Ifnot\MethodSpoofing\MethodSpoofingServiceProvider::class);
Usage
You have nothing to do.
All queries having a _method
params (GET
and POST
are checked) will have the HTTP query method changed.
Example
The following url ill be a POST
request :
http://www.my_website.com?_method=POST