->ordered()

This commit is contained in:
Benjamin Takats
2023-01-19 15:14:28 +01:00
parent 1ef00cb13f
commit a8d4624e38

View File

@@ -31,6 +31,7 @@ class SearchByTagComponent extends Component
])
->where('type', 'library_item')
->whereHas('libraryItems.libraries', fn($query) => $query->where('is_public', $shouldBePublic))
->ordered()
->get(),
]);
}