'id', 1 => 'storage_disk', 2 => 'path', 3 => 'user_id', 4 => 'admin_id', 5 => 're_type', 6 => 're_id', 7 => 'o_name', 8 => 'fsize', 9 => 'width', 10 => 'height', 11 => 'type1', 12 => 'updated_at', 13 => 'created_at', 14 => 'deleted_at', 15 => 'private', ); //attrlist end protected $table = 'file_imgs'; protected $appends =[ 'url' ]; public function getUrlAttribute() { return $this->getUrl(); } public function getUrl() { return Img::getAdminPicUrl($this->path); } }