The time
field type stores only time.
// streams/example.json
"fields": {
"starts_at": {
"type": "time"
}
}
@todo Generate config options from class::configuration
{
"starts_at": "09:30:00"
}
Basic value access returns the stored value:
@verbatim// Basic access
{{ $entry->starts_at }}@endverbatim
Date types also provide decorated values which returns a Carbon instance.
@verbatim// Decorated value
{{ $entry->startsAt()->format('g:i a') }}@endverbatim
@todo Generate methods from @docs
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.