示例#1
0
 public function storeClass(Request $request)
 {
     $classes = new User_classes();
     $classes->user_id = $request->user_id;
     $classes->class_id = $request->class_id;
     $classes->date_taken = $request->date_taken;
     //$classes->note = $request->note;
     $classes->save();
     //flash()->success('Your Device has been added.');
     return redirect('/');
 }
 public function getEditClass($id)
 {
     $classes = User_classes::all()->where('id', $id);
     $users = User::all()->lists('last_name', 'id');
     return view('editClass', compact('classes', 'users'));
 }