📜  laravel 从存储中读取 json 文件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:20.235000             🧑  作者: Mango

代码示例2
$path = storage_path() . "/json/${filename}.json"; // ie: /var/www/laravel/app/storage/json/filename.json
$json = json_decode(file_get_contents($path), true);