The integer
field type stores whole number values.
// streams/example.json
"fields": {
"count": {
"type": "integer"
}
}
{
"count": 100
}
Basic value access displays the stored value:
@verbatim// Basic access
{{ $entry->count }}@endverbatim
Boolean types also provide decorated values.
@verbatim// Decorated value
@if ($entry->count()->isEven())
// ...
@endif@endverbatim
@todo Generate methods from @docs
@todo Generate config options from class::configuration
// streams/example.json
"fields": {
"count": {
"type": "integer",
"config": {
"default": "increment"
}
}
}
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.