src/models/traits/Encryptable.php
public function getAttribute(string $key)
    {
        $value = parent::getAttribute($key);

        if ($this->valid($key, $value)) {
            return decrypt($value);
        }

        return $value;
    }
public function getAttribute(string $key)
    {
        $value = parent::getAttribute($key);

        if ($this->valid($key, $value)) {
            return decrypt($value);
        }

        return $value;
    }
public function getAttribute ( string $ key ) { $ value = parent :: getAttribute ( $ key ) ; if ( $ this -> valid ( $ key , $ value ) ) { return decrypt ( $ value ) ; } return $ value ; }
Get decrypted field values after getting from database

@param string $key
@return mixed
Get decrypted field values after getting from database