10, 'email' => 5, 'phone' => 2, 'website' => 2, 'address' => 1, ]; public function bills() { return $this->hasMany('App\Models\Expense\Bill'); } public function payments() { return $this->hasMany('App\Models\Expense\Payment'); } public function currency() { return $this->belongsTo('App\Models\Setting\Currency', 'currency_code', 'code'); } /** * Get the current balance. * * @return string */ public function getLogoAttribute($value) { if (!empty($value) && !$this->hasMedia('logo')) { return $value; } elseif (!$this->hasMedia('logo')) { return false; } return $this->getMedia('logo')->last(); } }