0
我一直在试图获得一个jh响应正文当webhook命中我的URL但失败。这是我的控制器方法无法从webhook获取json正文响应laravel
public function sendSMS(Request $request){
$response = json_decode(file_get_contents('php://input'));
Storage::disk('local')->put('file.txt', Response::json($response));
}
它总是在.txt中保存一个空的响应。你能帮我吗。
我已经测试网络挂接我自己和它的工作,但是当我在网站添加此网络挂接,并尝试测试它没有工作。 –
我的文件是可写的,存储正在工作。 –