mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
solved issuis from Bulk Review v3,v4
This commit is contained in:
@@ -196,13 +196,11 @@ class User extends Authenticatable
|
||||
public function getFolderTreeAttribute()
|
||||
{
|
||||
// Get sorting setup
|
||||
$sort = strtolower(request()->input('sort'));
|
||||
$direction = strtolower(request()->input('direction'));
|
||||
|
||||
return FileManagerFolder::with(['folders.shared', 'shared:token,id,item_id,permission,protected,expire_in'])
|
||||
->where('parent_id', 0)
|
||||
->where('user_id', $this->id)
|
||||
->sortable($sort , $direction)
|
||||
->sortable()
|
||||
->get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user