master
cody 8 months ago
parent 996e5e1179
commit 93f3adfd49

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

@ -86,7 +86,7 @@
<td>
{{ $row->serial }}
</td>
<td>{{isset($row->orderAgreements)?$row->orderAgreements[0]->file->url:""}}112</td>
<td>{{isset($row->orderAgreements)?$row->orderAgreements[0]->file->url:""}}</td>
<td>{{ $row->project->name }}</td>
<td>{{ $row->bed->building->name }}</td>

Loading…
Cancel
Save