Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flash messages for current request #14

Closed
wants to merge 1 commit into from

Conversation

thinksalot
Copy link
Contributor

Hi,

I've added the ability to show flash for current request. So you call addMessageNow() if you want to show a message in the current request or addMessage() if you want to show a message in the next request.

$flash->addMessageNow('error', 'Something went wrong');
// contains messages from previous and current request
$messages = $flash->getMessages();

@akrabat
Copy link
Member

akrabat commented Nov 11, 2016

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants