public function attributesToArray()
    {
        $attributes = parent::attributesToArray();

        foreach ($attributes as $key => $value) {
            if ($this->valid($key, $value)) {
                $attributes[$key] = decrypt($value);
            }
        }

        return $attributes;
    }
public function attributesToArray()
    {
        $attributes = parent::attributesToArray();

        foreach ($attributes as $key => $value) {
            if ($this->valid($key, $value)) {
                $attributes[$key] = decrypt($value);
            }
        }

        return $attributes;
    }
public function attributesToArray ( ) { $ attributes = parent :: attributesToArray ( ) ; foreach ( $ attributes as $ key => $ value ) { if ( $ this -> valid ( $ key , $ value ) ) { $ attributes [ $ key ] = decrypt ( $ value ) ; } } return $ attributes ; }
Decrypt given attributes

@return mixed
Decrypt given attributes