src/Traits/VerifierUserTrait.php
protected function setVerificationCode($code = null)
    {
        $this->{Config::get('verifier.store_column')}  = $code;

        if ($code) {
            $this->{Config::get('verifier.flag_column')} = false;
        } else {
            $this->{Config::get('verifier.flag_column')} = true;
        }

        $this->save();
    }
protected function setVerificationCode($code = null)
    {
        $this->{Config::get('verifier.store_column')}  = $code;

        if ($code) {
            $this->{Config::get('verifier.flag_column')} = false;
        } else {
            $this->{Config::get('verifier.flag_column')} = true;
        }

        $this->save();
    }
protected function setVerificationCode ( $ code = null ) { $ this -> { Config :: get ( 'verifier.store_column' ) } = $ code ; if ( $ code ) { $ this -> { Config :: get ( 'verifier.flag_column' ) } = false ; } else { $ this -> { Config :: get ( 'verifier.flag_column' ) } = true ; } $ this -> save ( ) ; }
Assigns and saves the verification code

@param null $code
Assigns and saves the verification code