I am using laravel API Authentication it is authenticating with api_token successfully as form-data. When I pass a data as Content_Type application/json. I am not receiving the Json data it shows empty array. How do I receive a JSON Request in the API?
public function create_invoice(Request $request) {
$data = $request->json()->all();
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/33R1d3P
via IFTTT
Aucun commentaire:
Enregistrer un commentaire