i tried this code. i need correct code please guide me.
`$request->validate([
'class'=> required,
'subject'=>required,
]);
$class=DB::table('class')->get();
@for ($i = 0; $i <$subject; $i++)
$class->class = $request->get('class');
$subject->subject = $request->get('subject');
@endfor
return redirect()->(classsetup.getData)
->with('success','Subject are saved against class');`
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2mQDLC4
via IFTTT
Aucun commentaire:
Enregistrer un commentaire