hasOne('App\Currency', 'id', 'currency_id')->value('name'); } public function getQuotesAttribute() { return unserialize($this->attributes['quotes']); } }