Skip to content

Commit 755eebc

Browse files
committed
feat(request): add eager loads to relations array
1 parent e98df92 commit 755eebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueTableRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function sortColumns()
181181
*/
182182
private function searchColumns()
183183
{
184-
$relations = [];
184+
$relations = $this->query->getEagerLoads();
185185

186186
$this->query->where(function ($query) use (&$relations) {
187187
foreach ($this->columns as $name => $settings) {

0 commit comments

Comments
 (0)