laravel read json file from storage

Solutions on MaxInterview for laravel read json file from storage by the best coders in the world

showing results for - "laravel read json file from storage"
Madeline
16 Mar 2020
1$path = storage_path() . "/json/${filename}.json"; // ie: /var/www/laravel/app/storage/json/filename.json
2
3$json = json_decode(file_get_contents($path), true); 
4