authenticating the user after the account is created

This commit is contained in:
Ghostie 2024-08-19 19:37:08 -05:00
parent 0c9b3bc4dd
commit af9d096a4a
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,6 @@ class PostController extends Controller
{
public function index(Request $request)
{
dd("Here be dragons...");
dd(auth()->user());
}
}

View File

@ -37,6 +37,9 @@ class SignupController extends Controller
"password" => Hash::make($request->password),
]);
// authenticate user
auth()->attempt($request->only("email", "password"));
return redirect()->route("posts.index");
}
}