The url method should return the path of the URL that represents the page. Dusk will use this URL when navigating to the page in the browser:
url
/** * Get the URL for the page. * * @return string */ public function url() { return '/login'; }