ffnlabs/traiter

A development tool to generate traits on a model to better organize your Laravel model code.

v0.1.1 2021-08-25 22:20 UTC

This package is auto-updated.

Last update: 2025-02-26 06:03:11 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

Installation

You can install the package via composer:

composer require ffnlabs/traiter --dev

Usage

php artisan make:traiter App\\Models\\ModelName

...or, within PHP or Tinker:

$stubber = new FFNLabs\Traiter\ModelStubber(App\Models\ModelName::class);
$stubber->generate();

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hello@559labs.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.