mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	fix logo display issue
This commit is contained in:
		| @ -22,10 +22,17 @@ class Company extends Model implements HasMedia | ||||
|     public function getLogoAttribute() | ||||
|     { | ||||
|         $logo = $this->getMedia('logo')->first(); | ||||
|  | ||||
|         $isSystem = FileDisk::whereSetAsDefault(true)->first()->isSystem(); | ||||
|  | ||||
|         if ($logo) { | ||||
|             return  asset($logo->getUrl()); | ||||
|             if ($isSystem) { | ||||
|                 return $logo->getPath(); | ||||
|             } else  { | ||||
|                 return $logo->getFullUrl(); | ||||
|             } | ||||
|         } | ||||
|         return ; | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     public function user() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user