Migration move media table and fixed attribute issue

This commit is contained in:
cuneytsenturk
2018-01-03 20:08:56 +03:00
parent 3c15d3e96f
commit 5788233c2e
10 changed files with 72 additions and 8 deletions

View File

@ -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;
}