Migration move media table and fixed attribute issue
This commit is contained in:
		@@ -104,8 +104,12 @@ class Revenue extends Model
 | 
			
		||||
     *
 | 
			
		||||
     * @return string
 | 
			
		||||
     */
 | 
			
		||||
    public function getAttachmentAttribute()
 | 
			
		||||
    public function getAttachmentAttribute($value)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($value)) {
 | 
			
		||||
            return $value;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!$this->hasMedia('attachment')) {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user