We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6af05ef + c840a1b commit fc2418dCopy full SHA for fc2418d
src/Engines/MySQLEngine.php
@@ -27,8 +27,17 @@ public function delete($models)
27
{
28
}
29
30
+ /**
31
+ * Pluck and return the primary keys of the given results.
32
+ *
33
+ * @param mixed $results
34
+ * @return \Illuminate\Support\Collection
35
+ */
36
public function mapIds($results)
37
38
+ return collect($results['results'])->map(function ($result) {
39
+ return $result->getKey();
40
+ });
41
42
43
/**
0 commit comments