Redirecting with sending Datas in laravel
问题 I tried following code: if the user's info to login is not correct redirect the user to the loin page again with the a message: if (!$info_is_correct){ $_SESSION['err_msg'] = 'your login info is not correct'; return redirect('http://localhost:8000/user/login'); } this is what I do in the login page(view) to echo the error msg: @isset($_SESSION['err_msg']) <div class="alert alert-danger mt-2" style="font-family:IRANSans;font-size:16px ;"> <p> <strong>خطا !</strong> {{$_SESSION['err_msg']}} <