4

my route

Route::post('register', function()
{
    return "POST SUCCESS!";
});

works fine if I chane it to "get". As soon as I change it to post (and use postman to actually send a post request) I get an error 500. Its driving me crazy and I cant find the answer..

There is also nothing in the php error log... o_0

Pero44
  • 105
  • 2
  • 10

1 Answers1

2
  1. Make sure you have created .env file for local environment.

  2. Take a look at storage/logs/laravel.log, you should find error there, e.g.:

cat storage/logs/laravel.log | grep "\[201
Limon Monte
  • 52,539
  • 45
  • 182
  • 213