Пример #1
0
 public function saveSiswa(Request $request, Kelas $kelas)
 {
     $kelas->siswas()->sync($request->input('siswa'));
     return redirect('/kelas/' . $kelas->id);
 }