In my Laravel-5.8 project, I am using dynamic input field to add student exam scores based on subjects
LeaveType Model:
class LeaveType extends Model {