I have a page for creating a driver and adding his cars - drivers/create
. A driver must have at least one car.
So I keep all the logic of storing the driver info in DriverController@store, but I also need to save cars info. I feel it is not a correct way to store elements of a Car class in the DriverController.
What would be a correct (or just a better) way in my case?