Actually flash should work. Ever tried to use $session(['quote' => $data])? Just to try it out...
Mar 17, 2015
5
Level 1
Laravel 5 | Session Flash for Form
Greetings,
I just finished setting up a form that takes some data and does a quick validation to confirm everything selected. On the confirm page, there's an action method that calls the controller to store the data. The problem is, when I click submit the next page is just blank. I have debugbar enabled but nothing pops up at all, it's just a blank page.
Do I have to use a different flash call?
Heres my 'QuoteRequestController.php'
public function confirm(Requests\PrepareQuoteRequest $request, Guard $auth)
{
$quotetemplate = $this->compileQuoteRequestTemplate($data = $request->all(), $auth);
session()->flash('quote', $data);
return view('quotes.confirm', compact('quotetemplate'));
$request->get('$datacenters');
}
public function store ()
{
$data = session()->get('quote');
return $data;
}
Please or to participate in this conversation.