Migration move media table and fixed attribute issue
This commit is contained in:
@ -135,8 +135,12 @@ class Bill 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