Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Enumhancer Laravel Package

henzeb/enumhancer

View on GitHub
Deep Wiki
Context7

Constructor

For people coming from Spatie's PHP Enum, this one will allow you to easily migrate away to actual enums.

Usage

Add the Constructor trait and add the docblock just like you would with Spatie's package.

use Henzeb\Enumhancer\Concerns\Constructor;

/**
 * [@method](https://github.com/method) static self CALLABLE()
 */
enum yourEnum {
    use Constructor;

    case CALLABLE;
}

Examples

YourEnum::CALLABLE(); // will return YourEnum::CALLABLE;

Note: This trait is not enabled by default when using the Enhancers trait.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver