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); }
public function assignAndroid($id) { $android = Android::find($id); \Session::flash('android', $android); return redirect('sim'); }