title: Laravel Enum casting error Call to undefined method App\\Enums\\UserType::from()
body: <p>When I try to cast a attribute from my model to one of my enums, it throws an erro:</p>
  <blockquote>
  <p>Call to undefined method App\Enums\UserType::from()</p>
  </blockquote>
  <p>I can not find anything about the required <code>find()</code> method.</p>
  <p>I followed the instructions <a href="https://laravel.com/docs/9.x/eloquent-mutators#enum-casting" rel="nofollow noreferrer">here</a>.</p>
  <p>My Enum <code>UserType</code>:</p>
  <pre><code>namespace App\Enums;
  
  enum UserType
  {
      case CUSTOMER;
      case PARTNER;
      case ADMIN;
  }
  </code></pre>
  <p>And my User-model:</p>
  <pre><code>namespace App\Models;
  
  use App\Enums\UserType;
  use FaarenTech\LaravelCustomUuids\Interfaces\HasCustomUuidInterface;
  use FaarenTech\LaravelCustomUuids\Models\UuidModel;
  use Illuminate\Auth\MustVerifyEmail;
  use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableInterface;
  use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableInterface;
  use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordInterface;
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Database\Eloquent\SoftDeletes;
  use Illuminate\Notifications\Notifiable;
  use Laravel\Sanctum\HasApiTokens;
  use Illuminate\Auth\Authenticatable;
  use Illuminate\Foundation\Auth\Access\Authorizable;
  use Illuminate\Auth\Passwords\CanResetPassword;
  
  class User extends UuidModel implements
      AuthorizableInterface,
      AuthenticatableInterface,
      CanResetPasswordInterface,
      HasCustomUuidInterface
  {
      use
          HasApiTokens,
          HasFactory,
          Notifiable,
          Authenticatable,
          Authorizable,
          CanResetPassword,
          MustVerifyEmail,
          SoftDeletes;
  
      /**
       * The attributes that should be cast.
       *
       * @var array&lt;string, string&gt;
       */
      protected $casts = [
          'email_verified_at' =&gt; 'datetime',
          'type' =&gt; UserType::class
      ];
  }
  </code></pre>