Reputation: 13172
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 '<pre>';print_r($request->all());echo '</pre>';die();
});
});
The result in the postman return empty array like this :
How can I solve the error?
Upvotes: 4
Views: 13872
Reputation: 4153
DUDE! I finally realize your parameters is wrong
"number": ""123""
you put 2 double quote it should "number": "123"
Upvotes: 4