Controller
foreach ($request->file('certificate') as $key => $certificate) {
$education = new Education();
$extension = $certificate->getClientOriginalName();
$filename = time() . '.' . $extension;
$certificate->move('uploads/certificate/', $filename);
$education->certificate = $filename;
$education->degree = request('degree')[$key];
$education->subject = request('subject')[$key];
$education->school = request('school')[$key];
$education->univ = request('univ')[$key];
$education->ddyear = request('year')[$key];
$education->percentage = request('percentage')[$key];
$education->save();
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire