Guest User

Untitled

a guest
May 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. return Redirect::back()->with('message','Operation Successful !');
  2.  
  3. echo Session::get('message');
  4.  
  5. // [[... validation and other magic here]]
  6.  
  7. if ($validator->fails()) {
  8. return Redirect::back()
  9. ->withMessage($message_fail)
  10. ->withErrors($validator)
  11. ->withInput();
  12. }
  13.  
  14. return Redirect::back()
  15. ->withMessage($message_success)
  16.  
  17. return redirect()->action('HomeController@index');
Add Comment
Please, Sign In to add comment