C
C
Combat72017-07-16 15:03:43
Laravel
Combat7, 2017-07-16 15:03:43

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']) }}

It runs successfully, the function should return a value.
But I can't figure out how to display it on the screen on the same page.
How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ernest Fayzullin, 2017-07-16
@Combat7

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 question

Ask a Question

731 491 924 answers to any question