validate(); if (Auth::attempt(['email' => $this->email, 'password' => $this->password], $this->remember)) { session()->regenerate(); return redirect()->intended(route('dashboard')); } $this->addError('email', 'These credentials do not match our records.'); } public function render() { return view('livewire.auth.login') ->layout('layouts.guest'); } }