path(), '..', 'static', 'source', 'expresscom.json'], DIRECTORY_SEPARATOR); $json = file_get_contents($file); $items = json_decode($json, true); $items = array_filter($items,function ($v) { return $v['name']; }); if (app('plugins')->isEnabled('express-company')) { $data = ExpressCompanyModel::uniacid()->select('name','value')->get()->toArray(); $items = array_merge($data,$items); } return new static($items); } }