I'm passing the following request to laravel api, but when I dump the input request, Laravel is returning an empty array.
{
"expense_type" : "payment",
"description" : "test",
"notes" : "My notes",
"expense_date": "2019-01-15",
"cost" : 100.50,
"group_id" : 1,
"shares" : [
{
"user_id" : 1,
"paid_share" : 100.50,
"owed_share" : 00.00
},
{
"user_id" : 2,
"paid_share" : 00.00,
"owed_share" : 50.25
},
{
"user_id" : 3,
"paid_share" : 00.00,
"owed_share" : 50.25
}
]
}
The output when dumping the input $request->all()
is []
can some one help if there is something wrong in the request