diff --git a/src/Engines/MySQLEngine.php b/src/Engines/MySQLEngine.php index 348fba0..b198ecb 100644 --- a/src/Engines/MySQLEngine.php +++ b/src/Engines/MySQLEngine.php @@ -27,8 +27,17 @@ public function delete($models) { } + /** + * Pluck and return the primary keys of the given results. + * + * @param mixed $results + * @return \Illuminate\Support\Collection + */ public function mapIds($results) { + return collect($results['results'])->map(function ($result) { + return $result->getKey(); + }); } /**