My header in the postman like this :
My body like this :
In the routes laravel lumen, I check like this :
$router->group(['middleware' => 'auth'], function ($router) {
...
$router->post('/sales-order', function (\Illuminate\Http\Request $request)
{
echo '
';print_r($request->all());echo '';die();
});
});
The result in the postman return empty array like this :
How can I solve the error?
解决方案
DUDE! I finally realize your parameters is wrong
"number": ""123"" you put 2 double quote it should "number": "123"