芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Models/Image.php
morphTo(); } public function setFeatureAttribute($value) { $this->attributes['featured'] = (bool) $value ? $value : null; } // public function getUrlAttribute() // { // return Storage::url($this->path); // } public function getUploadedTimeAttribute() { return $this->created_at->diffForHumans(); } public function getSizeInKbAttribute() { return $this->size ? round($this->size / 1024, 2) : null; } }