Answer the question
In order to leave comments, you need to log in
How to get response in laravel form?
There is such a code
Form::open(['action' => ['\Modules\Market\Http\Controllers\[email protected]'], 'id' => 'cartForm', 'data-notice' => 'alert', 'class ' => 'cartOrder', 'data-form' => 'ajax']) }}
Answer the question
In order to leave comments, you need to log in
if I understand correctly, then in [email protected]:
$data = ['key' => 'value'];
return redirect()->back()->with('data', $data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question