File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -124,25 +124,33 @@ public function __construct($id = null)
124
124
*
125
125
* @return Builder
126
126
*/
127
- public function getRowsQueryProperty (): Builder
127
+ public function rowsQuery (): Builder
128
128
{
129
129
$ this ->cleanFilters ();
130
130
131
131
return $ this ->applySorting ($ this ->query ());
132
132
}
133
133
134
+ /**
135
+ * @return Builder
136
+ */
137
+ public function getRowsQueryProperty (): Builder
138
+ {
139
+ return $ this ->rowsQuery ();
140
+ }
141
+
134
142
/**
135
143
* Get the rows paginated collection that will be returned to the view.
136
144
*
137
- * @return LengthAwarePaginator| Collection
145
+ * @return Builder[]|\Illuminate\Database\Eloquent\ Collection|mixed
138
146
*/
139
147
public function getRowsProperty ()
140
148
{
141
149
if ($ this ->paginationEnabled ) {
142
- return $ this ->applyPagination ($ this ->rowsQuery );
150
+ return $ this ->applyPagination ($ this ->rowsQuery () );
143
151
}
144
152
145
- return $ this ->rowsQuery ->get ();
153
+ return $ this ->rowsQuery () ->get ();
146
154
}
147
155
148
156
/**
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function resetBulk(): void
57
57
58
58
public function getSelectedRowsQueryProperty ()
59
59
{
60
- return (clone $ this ->rowsQuery )
60
+ return (clone $ this ->rowsQuery () )
61
61
->unless ($ this ->selectAll , fn ($ query ) => $ query ->whereKey ($ this ->selected ));
62
62
}
63
63
}
You can’t perform that action at this time.
0 commit comments