I have this route
Route::post('exclusive-zone', 'SiteController@postExclusiveZone');
which gets a POST request from a redirected URL from another application in a different domain.(Think redirect of paypal after payment). But I get a
MethodNotAllowedHttpException in RouteCollection.php line 201:
Trying to change it to
Route::get('exclusive-zone', 'SiteController@postExclusiveZone');
returns a success, but of course, I cannot retrieved the POST-ed data.
I tried also working a plain PHP,
<?php
echo $_POST['data'];
?>
displays the 'data', so the redirect sends a POST. Can someone explain?
update:
tried
Route::any('exclusive-zone', 'SiteController@postExclusiveZone');
this is what I get with Log::info($request)
[2015-09-08 13:43:52] local.INFO: GET /exclusive-zone HTTP/1.1