New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

25 Laravel packages tagged “casts”

Most downloaded: webpatser/laravel-uuid, with 18,810,474 downloads and 1,798 GitHub stars. Ranked by total downloads — use the controls below to sort by stars, most recently updated, or name.

webpatser/laravel-uuid

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.
1,798 18,810,474

henzeb/enumhancer

Your framework-agnostic Swiss Army knife for PHP 8.1+ native enums
69 475,279

vkovic/laravel-custom-casts

Make your own custom cast type for Laravel model attributes
217 383,069

io238/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.
56 99,557

lionix/castable-request

Apply Eloquent attribute casts to Laravel form request input.
23 94,672

esensi/model

The base model traits of Esensi
200 67,671

wendelladriel/laravel-lift

Take your Eloquent Models to the next level
701 61,207

arthurydalgo/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.
35,654

snoeren-development/laravel-currency-casting

Cast currency attributes, stored as integer, to floats automatically.
5 30,706

neuecommerce/model-casts

Some handy Laravel Eloquent model casts.
22,946

yuwuhsien/laravel-bcmath-cast

Laravel Eloquent casts for PHP 8.4's BCMath\Number object API, enabling natural operator-based arithmetic on model attributes while maintaining arbitrary precision decimal accuracy.
2 8,289

novius/laravel-json-casted

A package to cast json fields, each sub-keys is castable
1 7,506

floor9design/laravel-casts-uuid

A class for casting ramsey/uuid into laravel models
5,057

rennokki/eloquent-settings

Eloquent Settings allows you to bind key-value pairs to any Laravel Eloquent model. It supports even casting for boolean, float or integer types.
80 4,232

omaralalwi/laravel-time-craft

Laravel Time Craft is a powerful package for handling date and time scopes in your Laravel applications. It provides a set of convenient traits and helper functions to simplify date and time operations.
13 3,732

renoki-co/laravel-useful-casts

Laravel Useful Casts is a simple package for Laravel 7.0+ that comes with already-tested and already-written, useful casts for Eloquent models.
11 3,584

aichadigital/lara100

Laravel cast for handling decimal values as base-100 integers (cents/centesimals)
3,047

dev-toolbelt/laravel-eloquent-plus

Supercharge your Laravel Eloquent models with automatic validation, audit trails, external IDs, smart casting, and lifecycle hooks — all with zero boilerplate.
2 1,888

dennisvandalen/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.
1,864

spoorsny/laravel-south-african-id

Validation rules and an Eloquent Model attribute cast to value object encapsulating a South African government-issued personal identification number, for Laravel.
1,472

vicgutt/laravel-auto-model-cast

Automatically cast model attributes based on database columns
7 1,454

kyzegs/laravel-eloquent-embeddables

Doctrine-like embeddables for Eloquent using Laravel's native custom cast system.
2 1,336

folklore/laravel-json-data

References to models in the JSON columns of Eloquent models, and the schema of JSON columns.
1,063

fezz/money-magic

Generate consistent Brick\Money accessors for Eloquent "money" fields stored as minor units (ints). Define money mappings once, avoid floats, keep currency handling centralized, and optionally scaffold mappings via Artisan for clean, type-safe monetary domain code.
1,023

atayahmet/laravel-castable

Clarify types of all inputs
6 26