I am using Laracasts\Flash\FlashServiceProvider for flashing messages and I have some code like this at the end of a store method in a controller:
flash()->overlay('Member Invited', 'Success!');
return view('family.index')->with(['id' => $family->id]);
This works as designed. When a member is invited via a form, the form processed, stored and returned to the page and I am flashed the message.
However, when I go to any other page, I am flashed the same message again. It only does it one page past the original flashing. I have no idea what would cause this. I thought once you went to the next request, the flashed data was wiped. Anyone?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire