Skip to content

Commit ad2ff46

Browse files
committed
feat(core): 核心 FileWith 允许批量复制属性
@xiewnet
1 parent c64e400 commit ad2ff46

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Models/FileWith.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525
class FileWith extends Model
2626
{
27+
/**
28+
* 可以被批量赋值的属性.
29+
*
30+
* @var array
31+
*/
32+
protected $fillable = ['file_id', 'user_id', 'channel', 'raw', 'size'];
33+
2734
public function getPayIndexAttribute(): string
2835
{
2936
return sprintf('file:%d', $this->id);

0 commit comments

Comments
 (0)