Example #1
0
 public function delete($id)
 {
     if (Auth::check()) {
         Kelas::find($id)->delete();
         return \Redirect::to('kelas');
     } else {
         return \Redirect::to('login');
     }
 }
Example #2
0
 public function addsiswakelasform($id, $tid)
 {
     if (Auth::check()) {
         $students = Siswa::all();
         $kelas = Kelas::all();
         $thnajar = TahunAjar::all();
         return \View::make('Addons.Siswa.addsiswakelasform')->with('kelasid', $id)->with('tid', $tid)->with('students', $students)->with('kelas', $kelas)->with('thnajar', $thnajar);
     } else {
         return \Redirect::to('login');
     }
 }