/** * Updates Teacher into database * * @param Teacher $teacher * @param array $input * * @return Teacher */ public function update($teacher, $input) { $teacher->fill($input); $teacher->save(); return $teacher; }
/** * Updates Teacher into database * * @param Teacher $teacher * @param array $input * * @return Teacher */ public function update($teacher, $input) { $teacher->fill($input); $teacher->save(); return $teacher; }