laravel-casters

A collection of custom casts for Laravel

User.php
composer.json

Introduction

Introduction

Casts for Laravel 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,
];

Some alternatives to this package include:

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