rawilk/laravel-casters
Larablocks Analysis
rawilk/laravel-casters works with Laravel 11, 12 and 13 (latest release v4.0.0, May 19, 2026).
Laravel 7 to 10 in earlier releases.
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (May 19, 2026)
- 513 downloads a month (needs 10,000)
- 6 GitHub stars (needs 100)
State
Maintained- Last stable release: May 19, 2026.
- 1 release in the last 12 months.
- First released: Sep 18, 2020.
- Monthly downloads: 513.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require rawilk/laravel-casters |
|
| Latest Version: | v4.0.0 |
| PHP: | ^8.2 |
| Laravel: | 11 · 12 · 13 |
| Older releases: | 7 – 10 |
| License: | MIT |
| Last Updated: | Jun 24, 2026 |
| Links: | GitHub · Packagist |
Casts for Laravel

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
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v4.0.0 | ^8.2 | ^11.0| | MIT | |
| v3.1.1 | ^8.1| | ^9.0| | MIT | |
| v3.1.0 | ^8.1| | ^9.0| | MIT | |
| v3.0.4 | ^8.1| | ^9.0| | MIT | |
| v3.0.3 | ^8.1| | ^9.0| | MIT | |
| v3.0.2 | ^8.1| | ^9.0| | MIT | |
| v3.0.1 | ^8.1| | ^9.0| | MIT | |
| v3.0.0 | ^8.1 | ^9.0 | MIT | |
| v2.0.2 | ^7.4| | ^8.0| | MIT | |
| v2.0.1 | ^7.4| | ^8.0| | MIT | |
| 2.0.0 | ^7.4| | ^8.0 | MIT | |
| 1.0.1 | ^7.4 | ^7.28| | MIT | |
| 1.0.0 | ^7.4 | ^7.28| | MIT |