The hashed
field type stores a one-way hashed string.
// streams/example.json
"fields": {
"secret": {
"type": "hashed"
}
}
{
"secret": "$2y$10$bd4ATnlv.fApn0OGSMwU7.rBOUMP2cBaFQY20NFTNdpGCYUIZMEMm"
}
Basic value access displays encrypted value:
@verbatim// Basic access
{{ $entry->secret }}
@endverbatim
To get anything out of your stored value you will need to expand it.
@verbatim// Decorated value
@if ($entry->secret()->check('check me'))
// Matches
@endif
@endverbatim
@todo Generate methods from @docs
@todo Generate config options from class::configuration
A blank TALL-stack Laravel project with Streams.
The fundamental features and utilities offered by the Streams platform.
A universal and extensible RESTful API for Streams.
Extensible, user-friendly, and performant control panel, components, and services.
Dev tooling for Laravel Streams.