Skip to content

Added withFlash macro to RedirectResponse#127

Open
Dartui wants to merge 3 commits intolaracasts:masterfrom
Dartui:feature/redirect-macro
Open

Added withFlash macro to RedirectResponse#127
Dartui wants to merge 3 commits intolaracasts:masterfrom
Dartui:feature/redirect-macro

Conversation

@Dartui
Copy link

@Dartui Dartui commented Nov 29, 2017

Instead of writing

flash('Some message', 'danger')->important();

return redirect()->route('index');

we can now write

return redirect()->route('index')->withFlash('Some message', 'danger', true);

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.

1 participant