get(); $json = SupportedApps::getList()->getBody(); Storage::disk('local')->put('supportedapps.json', $json); foreach ($localapps as $app) { $app->class = $app->class(); $app->save(); } $items = Item::whereNotNull('class')->get(); foreach ($items as $item) { if (! file_exists(app_path('SupportedApps/'.Item::nameFromClass($item->class)))) { $app = Application::where('class', $item->class)->first(); Application::getApp($app->appid); } } } }