Hey there,
I am seeking guidance as a server is sending the parameters to my api url. And I'm trying to get those 2 params sent by server.
Server sending this type of log whenever i generate a new booking: "Dec 12 16:41:54 x1 wcron: [-] postNtimes: Posting done, url= b'wubook.revroo.io/push-notification';, params= {'rcode': 1670859713, 'lcode': 1669807740}"
Using Request in my code i can only fetch the manual added params by myself, can't fetch the params receieved from server in url.
public function url(Request $request)
{
$rcode = $request->has('rcode') ? $request->rcode : null;
$lcode = $request->has('lcode') ? $request->lcode : null;
return response()->json([$lcode,$rcode],200);
}
Its retuning {null, null} in response because I have not added manually params in url. However I can't find the method for fetching those POST params.