current_url = url()->current(); } public function reload_deployments() { $this->load_deployments(); } public function load_deployments(int|null $take = null) { if ($take) { $this->skip = $this->skip + $take; } $take = $this->default_take; ['deployments' => $deployments, 'count' => $count] = Application::find($this->application_id)->deployments($this->skip, $take); $this->deployments = $deployments; $this->deployments_count = $count; if (count($this->deployments) !== 0 && count($this->deployments) < $take) { $this->show_next = false; return; } } }