Support the ongoing development of →
Authentication Database Eloquent
Last updated 1 year ago.

Try this:

$qualification = new Qualification(array (
'level_of_education' => $input['level_educationText'], 
'exam_title' => $input['exam_titleText'], 
'institute_name' => $input['institute_nameText'], 
'insOther' => $input['insOtherText'], 
'result' => $input['resultText'], 
'year_of_passing' => $input['year_passingText'], 
'duration' => $input['durationText'], 
'achievement' => $input['achievementText'] 
) );


And considering you have $fillable member defined, you should be able to just pass $input array directly to Qualification constructor:

$qualification = new Qualification( $input );

Last updated 8 years ago.

Sign in to participate in this thread!


Your banner here too?

Sajib32 sajib32 Joined 4 Oct 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.