support for passworded files

This commit is contained in:
2024-04-25 17:48:47 +10:00
parent a57be26b75
commit bad020924d
8 changed files with 191 additions and 30 deletions

View File

@@ -23,7 +23,8 @@ class Media extends Model
'mime_type',
'size',
'user_id',
'hash'
'hash',
'password',
];
/**
@@ -53,7 +54,8 @@ class Media extends Model
* @var array
*/
protected $casts = [
'variants' => 'array'
'variants' => 'array',
'password' => 'hashed'
];
/**