|
|
|
@ -6,11 +6,11 @@ class Uploads extends SoftDeletesModel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
protected $table = "uploads";
|
|
|
|
protected $table = "uploads";
|
|
|
|
|
|
|
|
|
|
|
|
protected $appends = ['url'];
|
|
|
|
// protected $appends = ['url'];
|
|
|
|
|
|
|
|
//
|
|
|
|
public function getUrlAttribute()
|
|
|
|
// public function getUrlAttribute()
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
return '/'.$this->attributes['folder'].'/'.$this->name;
|
|
|
|
// return '/'.$this->attributes['folder'].'/'.$this->name;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|