master
cody 8 months ago
parent 996e5e1179
commit 93f3adfd49

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

@ -86,7 +86,7 @@
<td> <td>
{{ $row->serial }} {{ $row->serial }}
</td> </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->project->name }}</td>
<td>{{ $row->bed->building->name }}</td> <td>{{ $row->bed->building->name }}</td>

Loading…
Cancel
Save