where('updated_at', '<', now()->subHour())->delete(); } catch (\Exception $e) { $this->error('Could not delete payments: ' . $e->getMessage()); return 1; } $this->info('Successfully deleted all open payments'); return Command::SUCCESS; } }