I am working on a project and there is a table diagnostic. There is another table diagnostic_detail. diagnostic has a one to many relation with diagnostic_detail. The post data coming in the Diagnostic controller to make a new record has all the information about the diagnostic itself and an array of details to be pushed into the diagnostic_detail method.
Now it is simple to create the diagnostic record:
Diagnostic::create(Input::all());
But how do I take all the data for the detail and create it?