applications = Application::all(); $this->postgresqls = StandalonePostgresql::all(); } public function handle(): void { try { foreach ($this->applications as $application) { dispatch(new ApplicationContainerStatusJob( application: $application, )); } foreach ($this->postgresqls as $postgresql) { dispatch(new DatabaseContainerStatusJob( database: $postgresql, )); } } catch (\Throwable $e) { send_internal_notification('ResourceStatusJob failed with: ' . $e->getMessage()); ray($e); throw $e; } } }