laravel-casters is a collection of custom class casts for Laravel Eloquent Models. This package allows you to quickly
and easily add casts for names and hashing passwords on your user models.
protected $casts = [ // Hashes the value when assigning to `$model->password`. 'password' => Password::class, // 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
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:
The MIT License (MIT). Please see License File for more information.