app/Repositories/Backend/Student/StudentRepository.php
/**
     * For deleting the respective model from storage
     *
     * @param Student $student
     * @throws GeneralException
     * @return bool
     */
For deleting the respective model from storage
@param Student $student
@throws GeneralException
@return bool
For deleting the respective model from storage @param Student $student @throws GeneralException @return bool
public function delete(Student $student)
    {
        if ($student->delete()) {
            return true;
        }
        throw new GeneralException(trans('exceptions.backend.students.delete_error'));
    }
public function delete ( Student $ student ) { if ( $ student -> delete ( ) ) { return true ; } throw new GeneralException ( trans ( 'exceptions.backend.students.delete_error' ) ) ; }
For deleting the respective model from storage
 @param Student $student
 @throws GeneralException
 @return bool
For deleting the respective model from storage @param Student $student @throws GeneralException @return bool