Please enter the code for a Laravel form page, in which the form data needs to be saved to two different data tables.
Part of the form needs to be submitted to controller A and saved to data table A;
The other part of the form needs to be submitted to controller A and saved to data table A. To submit to controller B, save to data table B.
How to submit?
Submit to one first and inject the other one. A/a is executed first and then new B->b()