You can also flash session data using with like this:
with
return redirect('dashboard')->with('status', 'Profile updated!');
Meanwhile, in the view:
@if (session('status')) <div class="alert alert-success"> {{ session('status') }} </div> @endif
Read more here: laravel.com/docs/7.x/responses#red...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can also flash session data using
with
like this:Meanwhile, in the view:
Read more here: laravel.com/docs/7.x/responses#red...