0

I want to show a success message once the email is sent after redirected to same page. Here is my code :

return redirect('currentshowreport?showid='.$show_id)->with('success','Email sent successfully');

I am getting redirected to the specified page but the success message is not getting displayed. How to achieve this?

2
  • Where you display the message ? Commented Jul 1, 2016 at 6:54
  • I am displaying the message on the same page where i have a button "Send email". After clicking on this button i want to send an email also want to display success message. Commented Jul 1, 2016 at 6:55

1 Answer 1

1

Try this:

@if (session('success'))
    <div class="alert alert-success">
        {{ session('success') }}
    </div>
@endif
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.