Skip to content

Commit

Permalink
revert: make enum
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Mar 13, 2024
1 parent e72b6fa commit 26b2165
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 56 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ php8.1 版本后内置枚举支持,更多信息可以查看:https://www.php.

## 安装

支持 Laravel 10/Lumen 10 以上版本:
支持 Laravel 10 以上版本:

```shell
$ composer require jiannei/laravel-enum -vvv
Expand Down Expand Up @@ -129,13 +129,13 @@ $array = UserTypeEnum::toSelectArray();// 支持多语言配置

### 枚举转换和校验

- https://laravel.com/docs/10.x/requests#retrieving-enum-input-values
- https://laravel.com/docs/10.x/validation#rule-enum
- https://laravel.com/docs/11.x/requests#retrieving-enum-input-values
- https://laravel.com/docs/11.x/validation#rule-enum


### Model 中的枚举转换

- https://laravel.com/docs/10.x/eloquent-mutators#enum-casting
- https://laravel.com/docs/11.x/eloquent-mutators#enum-casting

## License

Expand Down
36 changes: 0 additions & 36 deletions src/Console/Commands/MakeEnumCommand.php

This file was deleted.

8 changes: 0 additions & 8 deletions stubs/enum/int.stub

This file was deleted.

8 changes: 0 additions & 8 deletions stubs/enum/string.stub

This file was deleted.

0 comments on commit 26b2165

Please sign in to comment.