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
  • 10,726
  • 57
  • 212
  • 388

1 Answers1

4

DUDE! I finally realize your parameters is wrong

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

Beginner
  • 3,960
  • 3
  • 16
  • 26