4

My header in the postman like this :

enter image description here

My body like this :

enter image description here

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 :

enter image description here

How can I solve the error?

moses toh
  • 12,344
  • 71
  • 243
  • 443

1 Answers1

4

DUDE! I finally realize your parameters is wrong

"number": ""123"" you put 2 double quote it should "number": "123"

Beginner
  • 4,118
  • 3
  • 17
  • 26