Closed
Description
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:
{
"foo": "bar"
}
- 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
.
Metadata
Metadata
Assignees
Labels
No labels