It turned out that the problem is with CSRF tokens. When I disabled them with help of following topic, everything started to work fine.
http://laravel.io/forum/11-14-2014-disabling-the-csrf-middleware-in-laravel-5
Hi,
Here is relevant chunk of code from routes.php
Route::post('testPost', function(){
echo "Post received";
});
When I hit it with POST request using hurl.it I get 500 Internal server error, but if I change first line so it handles get requests like:
Route::get('testPost', function(){
...
everything works fine.
My .htaccess file is as default.
Does anyone have an idea what can be the solution?
EDIT:
I've was modifying .htaccess file and now I'm getting TokenMismatchException.
It turned out that the problem is with CSRF tokens. When I disabled them with help of following topic, everything started to work fine.
http://laravel.io/forum/11-14-2014-disabling-the-csrf-middleware-in-laravel-5
Please or to participate in this conversation.