lundi 21 septembre 2020

Laravel 5.7.5 API Request Json

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? enter image description here

    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