Sending data in redirect not working
Created 7 years ago by lckamalI am sending form data like this:
return redirect()->back()->with('data', \Request::all());
While checking the data from view lt's not working.
{{dump(data)}}
Sending errors is working fine though.
redirect()->back()->with('errors', $validator->errors()->all());
even this works:
redirect()->back()->with('errors', \Request::all());
Any thoughts?
Data may very well be a reserved key in Laravel - I am not sure. If it works with
errors
and the same payload I would think you could useold
or something too. Just not data (which is a common key in response information).