close #191 Fixed : When trying to edit Companies. it is broken

This commit is contained in:
cuneytsenturk
2018-01-16 14:37:02 +03:00
parent 3d2122e9a4
commit 75531ee718
3 changed files with 45 additions and 34 deletions

View File

@ -236,14 +236,8 @@ class Company extends Eloquent
*
* @return string
*/
public function getCompanyLogoAttribute($value)
public function getCompanyLogoAttribute()
{
if (!empty($value) && !$this->hasMedia('company_logo')) {
return $value;
} elseif (!$this->hasMedia('company_logo')) {
return false;
}
return $this->getMedia('company_logo')->last();
}
}