I have a JSON file that I would like to load into a controller in Laravel so that I can use the data into my application.
The files path is /storage/app/calendar_Ids.json.
What is the correct way to go about doing this?
Here, this should help you get sorted.
use Storage;
$json = Storage::disk('local')->get('calendar_Ids.json');
$json = json_decode($json, true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With