Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel read json file from storage

$path = storage_path() . "/json/${filename}.json"; // ie: /var/www/laravel/app/storage/json/filename.json

$json = json_decode(file_get_contents($path), true); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #read #json #file #storage
ADD COMMENT
Topic
Name
9+7 =