public function secure($path, $status = 302, $headers = []) { return $this->to($path, $status, $headers, true); }
/** * Force to use https:// requests * * @return null|RedirectResponse Redirects to the https:// protocol if the current request is insecure */ public function forceSSL() { if (!$this->request->secure()) { return $this->redirect->secure($this->request->getRequestUri()); } return null; // The request is already secure }