TeamFoldersController@show refactored

This commit is contained in:
Čarodej
2021-09-24 11:32:32 +02:00
parent 19cc01131b
commit 37cad85a86
4 changed files with 13 additions and 36 deletions

View File

@@ -201,11 +201,6 @@ class Folder extends Model
return $this->hasMany(Folder::class, 'id', 'parent_id');
}
public function teamRoot(): HasMany
{
return $this->parents()->with('teamRoot');
}
public function getLatestParent()
{
if ($this->parent) {