kalitvyan/laravel-enum-localization

Laravel Enums with Localizationgit

v1.0.0 2022-10-11 14:45 UTC

This package is auto-updated.

Last update: 2024-04-11 18:20:36 UTC


README

This package helps to working with Enums and its values (aka Backed enums) when you need different languages to use. It includes an artisan command to generate Enum.

Installation

composer require kalitvyan/laravel-enum-localization

Usage

To generate a new Enum run the following artisan command:

php artisan make:enum MyEnum

It will generate the following enum: app/Enums/MyEnum.php.

Testing

To run the test suite:

composer test

Credits

LICENSE

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