diff --git a/app/Console/Commands/ResourcesDelete.php b/app/Console/Commands/ResourcesDelete.php index ef22eba38..3b0134f47 100644 --- a/app/Console/Commands/ResourcesDelete.php +++ b/app/Console/Commands/ResourcesDelete.php @@ -59,7 +59,7 @@ private function deleteServer() { ); foreach ($serversToDelete as $id) { - $toDelete = $servers->find($id)->first(); + $toDelete = Server::find($id); $this->info($toDelete); $confirmed = confirm("Are you sure you want to delete all selected resources?"); if (!$confirmed) {