i'm developing a web app with Laravel. I'm new with this amazing framework and i'm still learning.
My problem: i would to use
return back();
at the end of a method of controller, but passing to the back page some post data.
Example of what i want to do:
return back()->withPostData(['id'=>'10']);
Is possible to do that with Laravel?