laravel-casters is a collection of custom class casts for Laravel Eloquent Models. This package allows you to quickly
and easily add casts for encrypting attributes and hashing passwords on your user models.
protected $casts = [
'password' => Password::class,
'classified' => Encrypted::class,
'secret_number' => Encrypted::class . ':integer',
'name' => Name::class,
Some alternatives to this package include: