Skip to content

Commit

Permalink
Added flash data example
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Brown committed Jun 15, 2013
1 parent 6209df5 commit 3e4f4a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ A `Response` instance inherits from the `Symfony\Component\HttpFoundation\Respon

return Redirect::to('user/login');

**Returning A Redirect With Flash Data**

return Redirect::to('user/login')->with('message', 'Login Failed');

**Returning A Redirect To A Named Route**

return Redirect::route('login');
Expand Down

0 comments on commit 3e4f4a3

Please sign in to comment.