- mark folder as team folder after folder was created

- show members in spotlight search
This commit is contained in:
Čarodej
2021-11-04 09:14:12 +01:00
parent 5a9f2985c9
commit aec5b98313
15 changed files with 121 additions and 40 deletions

View File

@@ -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');