timwassenburg/laravel-trait-generator

v1.0.0 2023-04-21 15:43 UTC

README

Logo

Latest Version on Packagist GitHub Tests Action Status Total Downloads License

Table of Contents

  1. Installation
  2. Usage
  3. Testing
  4. More generator packages
  5. Contributing
  6. License

Installation

Install the package with composer.

composer require timwassenburg/laravel-trait-generator --dev

Usage

Run the following command on the command-line to generate a new trait.

php artisan make:trait {name}

Optionally, you can add multiple method names (seperated by comma) with the --methods param.

php artisan make:trait Notifiable --methods=notify,notifications

Testing

Run the tests with:

composer test

More generator packages

Looking for more ways to speed up your workflow? Make sure to check out these packages.

The packages mentioned above are part of Laravel Artisan Extender.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

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