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 (\Exception $th) { send_internal_notification('ResourceStatusJob failed with: ' . $th->getMessage()); ray($th); throw $th; } } }