app/Repositories/Backend/Student/StudentRepository.php
/**
     * For updating the respective Model in storage
     *
     * @param Student $student
     * @param  $input
     * @throws GeneralException
     * return bool
     */
For updating the respective Model in storage
@param Student $student
@param  $input
@throws GeneralException
return bool
For updating the respective Model in storage @param Student $student @param $input @throws GeneralException return bool
public function update(Student $student, array $input)
    {
        $input               = $this->uploadImage($input);
        $input['updated_by'] = access()->user()->id;
        if ($student->update($input))
            return true;
        throw new GeneralException(trans('exceptions.backend.students.update_error'));
    }
public function update ( Student $ student , array $ input ) { $ input = $ this -> uploadImage ( $ input ) ; $ input [ 'updated_by' ] = access ( ) -> user ( ) -> id ; if ( $ student -> update ( $ input ) ) return true ; throw new GeneralException ( trans ( 'exceptions.backend.students.update_error' ) ) ; }
For updating the respective Model in storage
 @param Student $student
 @param  $input
 @throws GeneralException
 return bool
For updating the respective Model in storage @param Student $student @param $input @throws GeneralException return bool