Drop columns and company logo change variable name.

This commit is contained in:
cuneytsenturk
2018-01-03 17:54:02 +03:00
parent 3ffdb98a4b
commit 3c15d3e96f
14 changed files with 304 additions and 20 deletions

View File

@ -236,12 +236,12 @@ class Company extends Eloquent
*
* @return string
*/
public function getLogoAttribute()
public function getCompanyLogoAttribute()
{
if (!$this->hasMedia('logo')) {
if (!$this->hasMedia('company_logo')) {
return false;
}
return $this->getMedia('logo')->last();
return $this->getMedia('company_logo')->last();
}
}