public function assignAndroid($androidId, $employeeId)
 {
     $android = Android::find($androidId);
     $android->employee_id = $employeeId;
     $android->save();
     \Session::flash('androidsuccess', 'Android device successfully assigned');
     return redirect('employee/' . $employeeId);
 }
示例#2
0
 public function assignAndroid($id)
 {
     $android = Android::find($id);
     \Session::flash('android', $android);
     return redirect('sim');
 }