parameters)) { $parametersArray = json_decode($this->parameters, 1); if (is_array($parametersArray)) { $parameters = $parametersArray; } } return $parameters; } public function property() { return $this->hasOne("App\Models\Property", 'id', 'property_id') ->select(['id', 'name', 'country', 'destination_id','property_type_id','mapping']); } public function channel() { return $this->hasOne("App\Models\PropertyChannel", 'id', 'channel_id')->select(['id', 'name', 'token', 'channel_category_id', 'contact']); } public function propertyWeb() { return $this->hasOne('App\Models\PropertyWeb', 'property_id', 'property_id') ->where('status', '=', 1) ->select("id", "property_id", "domain", "default_language", "template_id", "token"); } public function propertyChannelMapping() { return $this->hasOne('App\Models\PropertyChannelMapping', 'property_id', 'property_id') ->where('channel_id', '=', 1) ->select("id", "property_id", "channel_id", "currency_code", "channel_tax_id", "status"); } public function propertyWebComponent() { return $this->hasMany('App\Models\PropertyWebComponentMapping','property_id', 'property_id') ->select('id','property_id','channel_id','component_id','parameter','language','status')->where('status',1); } }