laravel-multiplex icon indicating copy to clipboard operation
laravel-multiplex copied to clipboard

Add Enum Type

Open ProgrammerZ opened this issue 1 year ago • 1 comments

It would be awesome to add enum type

$model->setMeta('key', Enum::class)
// Or even
$model->setMeta(Enum::class) -> that translates to ['key_as_enum_class_name' => 'enum_value']

protected array $metaKeys = [
    'key' => Enum::class,
    // OR
    Enum::class
];

Or add Macroable.

ProgrammerZ avatar Feb 25 '24 17:02 ProgrammerZ

I like the idea. Would you like to send a PR for this? Otherwise it may take a while before I'll find the time implementing this.

marijoo avatar Feb 26 '24 08:02 marijoo

:tada: This issue has been resolved in version 1.4.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

marijoo avatar Aug 20 '24 16:08 marijoo

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

marijoo avatar Sep 12 '24 08:09 marijoo