rawilk/laravel-casters

A collection of custom casts for Laravel.
6,162 6
Install
composer require rawilk/laravel-casters
Latest Version:v4.0.0
PHP:^8.2
License:MIT
Last Updated:Jun 24, 2026
Links: GitHub  ·  Packagist
Maintainer: rawilk

Casts for Laravel

Latest Version on Packagist Tests Total Downloads PHP from Packagist License

Social image

Casts for Laravel is a collection of custom class casts for Laravel Eloquent Models.

protected $casts = [
    // Provides utilities for manipulating a name
    'name' => Name::class,
];

Installation

You can install the package via composer:

composer require rawilk/laravel-casters

Documentation

For documentation, please refer to: https://randallwilk.dev/docs/laravel-casters

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

Please review my security policy on how to report security vulnerabilities.

Credits

Alternatives

Some alternatives to this package include:

Disclaimer

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

rawilk/laravel-settings

Store Laravel application settings in the database.

242,748 303
rawilk/filament-quill

Quill rich text editor for Filament.

61,364 36
rawilk/filament-password-input

Enhanced password input component for filament.

301,925 53
rawilk/profile-filament-plugin

Profile & MFA starter kit for filament.

16,398 39