Skip to content
Advertisement

Unable to retrieve GET parameters using laravel

I am working on a Laravel project and am trying to get GET parameters from a controller. Requesting a page with ?date={value} should return value as follows:

JavaScript

This does not work though. POST requests work as they should. I am using nginx through cloudflare. I tried making a plain PHP file with

JavaScript

which works fine.

Advertisement

Answer

I found my problem. In the nginx configuration for the site (/etc/nginx/sites-available/default), I had

JavaScript

which should be

JavaScript

Fixed, restarted, now it works.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement