changed default sorting in navigation tree for move popup action

This commit is contained in:
Peter Papp
2020-12-05 17:09:44 +01:00
parent 2e465f4d03
commit f1006355c4

View File

@@ -171,6 +171,7 @@ class BrowseController extends Controller
$folders = FileManagerFolder::with('folders:id,parent_id,unique_id,name')
->where('parent_id', 0)
->where('user_id', Auth::id())
->orderByDesc('created_at')
->get(['id', 'parent_id', 'unique_id', 'name']);
return [