id . '.png'; return Config::get('app.client_server') . '/assets/img/brands/' . $this->logo; } public function getCountryCodeGroupArrayAttribute() { if (!is_null($this->country_code_group)) { return json_decode($this->country_code_group, 1); } else { return null; } } public function propertyChannelCategory() { return $this->hasOne('App\Models\PropertyChannelCategory', 'id', 'channel_category_id')->select(['id', 'name', 'language_key']); } public function parentChannel() { return $this->hasOne('App\Models\PropertyChannel', 'id', 'parent_id')->select(['id', 'parent_id', 'name', 'official_name', 'description', 'channel_category_id', 'country_code', 'currency_code', 'default_currency', 'logo', 'address', 'zip_code', 'email', 'phone', 'phone2', 'fax', 'score', 'status']); } }