Description
Access the request data using $request->get('data') returns nothing, however using $request->data works.
Setup:
Laravel app running inside the phppm/nginx container
php-pm: v1.0.4
php-pm-httpkernel: v1.0.4
Laravel: v5.6
Steps to reproduce:
- Clone my example repo:
git clone https://github.com/tobiasdierich/php-pm-example (The only important bit is here: https://github.com/tobiasdierich/php-pm-example/blob/master/routes/api.php`)
- Run composer:
composer install --no-dev
- Start php-pm:
docker run -v `pwd`:/var/www -p 8080:80 phppm/nginx --bootstrap=laravel --static-directory=public/
- Make a post request to
/api/foo with POST data:
- Make the same request to
/api/bar
Result:
The first request to /api/foo returns nothing, the second however returns bar.
Expected behaviour:
Both requests should return bar.
Description
Access the request data using
$request->get('data')returns nothing, however using$request->dataworks.Setup:
Laravel app running inside the
phppm/nginxcontainerphp-pm: v1.0.4
php-pm-httpkernel: v1.0.4
Laravel: v5.6
Steps to reproduce:
git clone https://github.com/tobiasdierich/php-pm-example(The only important bit is here: https://github.com/tobiasdierich/php-pm-example/blob/master/routes/api.php`)composer install --no-devdocker run -v `pwd`:/var/www -p 8080:80 phppm/nginx --bootstrap=laravel --static-directory=public//api/foowith POST data:{ "foo": "bar" }/api/barResult:
The first request to
/api/fooreturns nothing, the second however returnsbar.Expected behaviour:
Both requests should return
bar.