| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App\Module\File\Models;
- use App\Module\File\Img;
- use UCore\ModelCore;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * 图片文件
- *
- * field start
- * field end
- *
- */
- class FileImg extends \UCore\ModelCore
- {
- use SoftDeletes;
- // attrlist start
- protected $fillable = [
- ];
- // attrlist end
- protected $table = 'file_imgs';
- protected $appends =[
- 'url'
- ];
- public function getUrlAttribute()
- {
- return $this->getUrl();
- }
- public function getUrl()
- {
- return Img::getAdminPicUrl($this->path);
- }
- }
|