Compare commits
2 Commits
4bd72b1349
...
47a7590bf5
| Author | SHA1 | Date | |
|---|---|---|---|
| 47a7590bf5 | |||
|
|
863381a226 |
@@ -21,7 +21,7 @@ class Controller extends BaseController
|
|||||||
{
|
{
|
||||||
$data = json_decode(Storage::disk('local')->get($file));
|
$data = json_decode(Storage::disk('local')->get($file));
|
||||||
foreach ($path as $subobject) {
|
foreach ($path as $subobject) {
|
||||||
$data = $data->$subobject;
|
$data = $data->$subobject ?? [];
|
||||||
}
|
}
|
||||||
$items = [];
|
$items = [];
|
||||||
foreach ($data as $item_data) {
|
foreach ($data as $item_data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user