App\Repositories\Backend\Access\User\UserRepository::checkUserByEmail PHP Method

checkUserByEmail() protected method

protected checkUserByEmail ( $input, $user )
$input
$user
    protected function checkUserByEmail($input, $user)
    {
        //Figure out if email is not the same
        if ($user->email != $input['email']) {
            //Check to see if email exists
            if ($this->query()->where('email', '=', $input['email'])->first()) {
                throw new GeneralException(trans('exceptions.backend.access.users.email_error'));
            }
        }
    }