functionality for setting default folders for app installation

This commit is contained in:
Peter Papp
2021-02-27 11:49:01 +01:00
parent 3328fdebb0
commit f55472442f
9 changed files with 101 additions and 78 deletions
+5 -1
View File
@@ -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");
});
}
}