spotlight tweaks

This commit is contained in:
Čarodej
2021-12-14 13:54:01 +01:00
parent 42487d43f1
commit 5439ba1aae
12 changed files with 113 additions and 28 deletions
@@ -83,11 +83,13 @@ class SpotlightSearchController
// Search files and folders
$files = File::search($query)
->constrain($fileConstrain)
->get();
->get()
->take(3);
$folders = Folder::search($query)
->constrain($folderConstrain)
->get();
->get()
->take(3);
// Collect folders and files to single array
return [