I have been trying to get a json response body when webhook hit on my URL but failing. This is my controller method
public function sendSMS(Request $request){
$response = json_decode(file_get_contents('php://input'));
Storage::disk('local')->put('file.txt', Response::json($response));
}
It always save a empty response in .txt. Can you help me out.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lcdI2k
via IFTTT
Aucun commentaire:
Enregistrer un commentaire