vicgutt/laravel-auto-model-cast
Automatically casts Laravel Eloquent model attributes based on their database column types, so you can skip manually maintaining $casts arrays. Keeps models tidy and casts in sync with your schema.
Laravel Auto Model Cast derives Eloquent attribute casts directly from your database schema, so you no longer have to hand-maintain a $casts array on every model. It inspects column types and applies sensible native casts—integers, booleans, dates, decimals, and JSON—keeping models lean and consistent with the underlying tables.
$casts entries still win.How can I help you explore Laravel packages today?