mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
functionality for setting default folders for app installation
This commit is contained in:
+5
-1
@@ -295,7 +295,11 @@ class User extends Authenticatable
|
||||
parent::boot();
|
||||
|
||||
static::creating(function ($model) {
|
||||
$model->id = (string)Str::uuid();
|
||||
// Store uuid into model
|
||||
$model->id = Str::uuid();
|
||||
|
||||
// Create user directory
|
||||
Storage::makeDirectory("files/$model->id");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user