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 $e) { ray($e->getMessage()); } } }