Open AhmadApriliyanto23 opened 1 year ago
put the your json file in the storage\app\public folder
//use use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Storage;
//script in function $path = Storage::get('public\json\jsondata.json'); // call file json $data = json_decode($path,true); //decode file json
$path = Storage::get('public\json\jsondata.json'); // call file json
$data = json_decode($path,true); //decode file json
PREPARE
put the your json file in the storage\app\public folder
CONTROLLER
//use
use Illuminate\Support\Facades\Storage;
//script in function
$path = Storage::get('public\json\jsondata.json'); // call file json
$data = json_decode($path,true); //decode file json