D
D
DenKG2016-12-04 19:15:03
Laravel
DenKG, 2016-12-04 19:15:03

Is it possible to bind several controllers to one page or to one route?

I have such a problem.
I have two pages: for payment and account replenishment. After each operation, the data must be sent to the appropriate tables in the database, but certain data must also be written to the Transaction table.

Route::post('/trans', '[email protected]');
Route::post('/trans', '[email protected]');

Но вот только когда я делаю, например, так, срабатывает только функция 'purse'. Или нужно создавать новый контроллер для этого же метода Post?
Попробовал так:
Route::post('/moneyfill', '[email protected]', '[email protected]');

Работает только [email protected] Подскажите, как решить беду :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question