Mutator & Accessor Generator

Generate Laravel 10/11 Attribute::make() syntax for model attributes.

Attribute Configuration

Accessor (Get)

Mutator (Set)

Generated Code

Usage: Add this method to your Eloquent model class. Laravel will automatically use it when accessing or setting the attribute.

Features

  • Generate Laravel 9+ Attribute::make() syntax
  • Support for legacy get/set methods (Laravel 8-)
  • Common transformations (uppercase, lowercase, capitalize)
  • Accessor (getter) and mutator (setter) support
  • Password hashing example

How to Use

  1. Enter your model name (optional)
  2. Enter the attribute name (e.g., first_name)
  3. Choose whether to include accessor and/or mutator
  4. Select the transformation type for each
  5. Select your Laravel version
  6. Click "Generate Code" and copy to your model