Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Dateinterval Cast

Laravel Dateinterval Cast Laravel Package

atymic/laravel-dateinterval-cast

A Laravel Eloquent cast that converts database values to and from PHP DateInterval objects, letting you store intervals in your models and access them as native DateInterval instances without manual parsing or conversion code.

View on GitHub
Deep Wiki
Context7

A lightweight Laravel Eloquent cast for storing and retrieving PHP DateInterval objects. It maps interval attributes to database columns as ISO 8601 duration strings (e.g. P1Y2M3D), letting your models work with native DateInterval instances without manual serialization.

  • Seamless DateInterval casting on Eloquent models
  • Stores durations as portable ISO 8601 strings
  • Handles null values cleanly
  • Simple attribute declaration—no custom accessors needed
  • Works with standard Laravel model serialization
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels