mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 18:30:38 +00:00
solved issues bulk review part.1
This commit is contained in:
+2
-3
@@ -195,15 +195,14 @@ class User extends Authenticatable
|
||||
*/
|
||||
public function getFolderTreeAttribute()
|
||||
{
|
||||
|
||||
// Get sorting setup
|
||||
$sort = strtolower(request()->input('sort'));
|
||||
$direction = strtolower(request()->input('direction'));
|
||||
|
||||
// TODO: pozor pozor tu by sme mali pouzit sortable(), tak ako si pouzil v BrowseController
|
||||
return FileManagerFolder::with(['folders.shared', 'shared:token,id,item_id,permission,protected,expire_in'])
|
||||
->where('parent_id', 0)
|
||||
->where('user_id', $this->id)
|
||||
->orderBy($sort , $direction)
|
||||
->sortable($sort , $direction)
|
||||
->get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user