mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-22 09:32:14 +00:00
- mark folder as team folder after folder was created
- show members in spotlight search
This commit is contained in:
@@ -192,6 +192,11 @@ class Folder extends Model
|
||||
->withPivot('permission');
|
||||
}
|
||||
|
||||
public function owner(): HasOne
|
||||
{
|
||||
return $this->hasOne(User::class, 'id', 'user_id');
|
||||
}
|
||||
|
||||
public function parents(): HasMany
|
||||
{
|
||||
return $this->hasMany(Folder::class, 'id', 'parent_id');
|
||||
|
||||
Reference in New Issue
Block a user