mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 10:20:38 +00:00
- enhanced setup:dev script
- refactored shared token creation
This commit is contained in:
@@ -43,8 +43,9 @@ class Share extends Model
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::creating(function ($model) {
|
||||
$model->id = (string)Str::uuid();
|
||||
static::creating(function ($shared) {
|
||||
$shared->id = (string)Str::uuid();
|
||||
$shared->token = Str::random(16);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user