where('status', $status)->get(); } protected function countryHash() { $codes = $this->select('country_name', 'country_code')->get(); return $codes->mapWithKeys(function ($item) { return [$item['country_name'] => $item['country_code']]; }); } protected function code_countryHash() { $codes = $this->select('country_name', 'country_code')->get(); return $codes->mapWithKeys(function ($item) { return [$item['country_code'] => $item['country_name']]; }); } }