all(); if (! empty($settings)) { return setting($key); } $company_id = $this->getCompanyId(); if (empty($company_id)) { return $default; } return Setting::companyId($company_id)->where('key', $key)->pluck('value')->first(); } }