Skip to content

Commit

Permalink
BenSampo/laravel-enum has removed CastsEnums trait (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
remxcode authored Jun 6, 2022
1 parent 8ea3dac commit 3821492
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ It is strongly recommended that you use Attribute Casting in your models. From t

```php
use App\Enums\UserType;
use BenSampo\Enum\Traits\CastsEnums;
use Illuminate\Database\Eloquent\Model;

class Example extends Model
{
use CastsEnums;

protected $casts = [
'user_type' => UserType::class,
];
Expand Down

0 comments on commit 3821492

Please sign in to comment.