0

I am planning to upload a JSON file and then read it using laravel. I think it is possible but my code is not working

this is my code:

$json_file = $request->json_file;   
$json_file->move("uploads/json",$json_file->getClientOriginalName());
$json_data = file_get_contents(env('APP_URL', '')."/uploads/json/".$json_file->getClientOriginalName());
echo $json_data;
$json_data = json_decode($json_data);
var_dump($json_data);

when I upload the json file I always getting Maximum execution time of 60 seconds exceeded. I have no idea about it since my json file contains

{
    "prefix": "#",
    "token": "46881dfsf",
    "as_link": "http://mylink.com"
}

any idea about my case?

t.lore
  • 69
  • 8

0 Answers0