mardi 1 mai 2018

Parse JSON Data from File upload

I have an input that select json file

in my controller, I did

dd(Input::all());

I got

enter image description here

My goal is to parse the JSON file that I got and loop through them.

I've tried

$string = file_get_contents(Input::get('fileinput'));
$json = json_decode($string, true);


Questions

How would one go about and debug this further ?


I'm open to any suggestions at this moment.

Any hints/suggestions / helps on this be will be much appreciated!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2I4uU8E
via IFTTT

Aucun commentaire:

Enregistrer un commentaire