You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,28 +98,42 @@ public function update($models)
96
98
97
99
$bulk = [];
98
100
foreach ($modelsas$model) {
101
+
assert($modelinstanceof Model && method_exists($model, 'toSearchableArray'), newLogicException(sprintf('Model "%s" must use "%s" trait', $model::class, Searchable::class)));
@@ -133,7 +149,7 @@ public function update($models)
133
149
#[Override]
134
150
publicfunctiondelete($models): void
135
151
{
136
-
assert($modelsinstanceofCollection, newTypeError(sprintf('Argument #1 ($models) must be of type %s, %s given', Collection::class, get_debug_type($models))));
152
+
assert($modelsinstanceofEloquentCollection, newTypeError(sprintf('Argument #1 ($models) must be of type %s, %s given', Collection::class, get_debug_type($models))));
137
153
138
154
if ($models->isEmpty()) {
139
155
return;
@@ -149,7 +165,7 @@ public function delete($models): void
149
165
*
150
166
* @see Engine::search()
151
167
*
152
-
* @return mixed
168
+
* @return array
153
169
*/
154
170
#[Override]
155
171
publicfunctionsearch(Builder$builder)
@@ -158,14 +174,14 @@ public function search(Builder $builder)
158
174
}
159
175
160
176
/**
161
-
* Perform the given search on the engine.
177
+
* Perform the given search on the engine with pagination.
0 commit comments