rawilk/laravel-casters
Collection of custom Eloquent cast classes for Laravel models. Add handy casts like Name to normalize and manipulate attributes automatically. Install via Composer; full docs available online.

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,
];
You can install the package via composer:
composer require rawilk/laravel-casters
For documentation, please refer to: https://randallwilk.dev/docs/laravel-casters
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review my security policy on how to report security vulnerabilities.
Some alternatives to this package include:
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?