I have been looking around for a way of doing this. I know it is possible to store an array in the session with the following: Session::push('user.teams', 'developers');
Is it possible to do the same but with flash data? Something like Session::flashpush('user.teams', array('developers', 'designers'));
would be great.
The usecase for me at this moment is primarily the following:
Session::flash('flash_message', $validator->messages());
serialize
php.net/manual/en/function.serialize.php – Bigamist