mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
sorting first commit
This commit is contained in:
@@ -148,13 +148,15 @@ class BrowseController extends Controller
|
||||
$folders = FileManagerFolder::with(['parent', 'shared:token,id,item_id,permission,protected,expire_in'])
|
||||
->where('user_id', $user_id)
|
||||
->where('parent_id', $unique_id)
|
||||
->orderBy('created_at', 'DESC')
|
||||
// ->orderBy('created_at', 'DESC')
|
||||
->sortable(['name', 'DESC'])
|
||||
->get();
|
||||
|
||||
$files = FileManagerFile::with(['parent', 'shared:token,id,item_id,permission,protected,expire_in'])
|
||||
->where('user_id', $user_id)
|
||||
->where('folder_id', $unique_id)
|
||||
->orderBy('created_at', 'DESC')
|
||||
// ->orderBy('created_at', 'DESC')
|
||||
->sortable(['name', 'DESC'])
|
||||
->get();
|
||||
|
||||
// Collect folders and files to single array
|
||||
|
||||
Reference in New Issue
Block a user