Skip to main content
Improve code formatting, grammar and title.
Source Link
user633440
user633440

Laravel redirect backRedirect Back with() messageMessage

TryingI am trying to redirect to the previous page with a message when there is a fatal error.

App::fatal(function($exception) { return Redirect::back()->with('msg', 'The Message'); } 

In the view trying to access the msg with

Sessions::get('msg') 

But nothing is getting rendered, am I doing something wrong here  ?

Laravel redirect back with() message

Trying to redirect to the previous page with message when there is a fatal error.

App::fatal(function($exception) { return Redirect::back()->with('msg', 'The Message'); } 

In the view trying to access the msg with

Sessions::get('msg') 

But nothing is getting rendered, am I doing something wrong here  ?

Laravel Redirect Back with() Message

I am trying to redirect to the previous page with a message when there is a fatal error.

App::fatal(function($exception) { return Redirect::back()->with('msg', 'The Message'); } 

In the view trying to access the msg with

Sessions::get('msg') 

But nothing is getting rendered, am I doing something wrong here?

edited title
Link
M T
  • 4.4k
  • 4
  • 23
  • 27

Laravel redirect back with() message

Source Link
M T
  • 4.4k
  • 4
  • 23
  • 27
Loading