public function saveSiswa(Request $request, Kelas $kelas) { $kelas->siswas()->sync($request->input('siswa')); return redirect('/kelas/' . $kelas->id); }