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

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'] 
) );

$jobseeker->qualifications()->save($qualification);

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

$qualification = new Qualification( $input );

$jobseeker->qualifications()->save($qualification);
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Sajib32 sajib32 Joined 4 Oct 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.