I have a page with a some content on it and a comments section. Comments can only be left by users who are signed in so I have added a login form to the page for users to si
For Laravel 5.5, following code worked for me by just updating LoginController.php
public function showLoginForm() { session(['link' => url()->previous()]); return view('auth.login'); } protected function authenticated(Request $request, $user) { return redirect(session('link')); }