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();
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire