public function setConfirmationTokenAttribute($value)
    {
        // if null - dont generate and set null in table
        if (is_null($value)) {
            $this->attributes['confirmation_token'] = null;
        }
        else {
            $this->attributes['confirmation_token'] = $this->getUniqueConfirmationToken();
        }
    }
public function setConfirmationTokenAttribute($value)
    {
        // if null - dont generate and set null in table
        if (is_null($value)) {
            $this->attributes['confirmation_token'] = null;
        }
        else {
            $this->attributes['confirmation_token'] = $this->getUniqueConfirmationToken();
        }
    }
public function setConfirmationTokenAttribute ( $ value ) { // if null - dont generate and set null in table if ( is_null ( $ value ) ) { $ this -> attributes [ 'confirmation_token' ] = null ; } else { $ this -> attributes [ 'confirmation_token' ] = $ this -> getUniqueConfirmationToken ( ) ; } }
Set the unique confirmation_token

@param [string] $confirmation_token
Set the unique confirmation_token