title: Interface "League\Config\ConfigurationProviderInterface" not found - Laravel
body: <p>I'm trying to set the email verification for my Laravel App, but I get this message when I register a user: <code>Interface &quot;League\Config\ConfigurationProviderInterface&quot; not found</code>. I didn't found any same thread about that anywhere else.</p>
  <p>The line of code that cause problem is this one: <code>event(new Registered($user)); //Send email verif</code> in my <code>RegisteredUserController.php</code>. All the auth files and stuff were generate with the Laravel Ui starter pack. My Laravel version is 9. Does anyone have a clue? Thank you!</p>
  <p>Here's the <code>RegisteredUserController.php</code> code:</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use App\Http\Requests\Auth\LoginRequest;
  use App\Models\User;
  use App\Providers\RouteServiceProvider;
  use App\Http\Controllers\UtilityController;
  use App\Http\Requests\RegisterRequest;
  use Illuminate\Auth\Events\Registered;
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Auth;
  use Illuminate\Support\Facades\Hash;
  use Illuminate\Validation\Rules;
  
  class RegisteredUserController extends Controller
  {
      /**
       * Display the registration view.
       *
       * @return \Illuminate\View\View
       */
      public function create()
      {
          return view('frontend.auth.register', ['towns' =&gt; UtilityController::GetTowns()]);
      }
  
      /**
       * Handle an incoming registration request.
       *
       * @param  \Illuminate\Http\Request  $request
       * @return \Illuminate\Http\RedirectResponse
       *
       * @throws \Illuminate\Validation\ValidationException
       */
      public function store(RegisterRequest $request)
      {   
          $user = User::create([
              'firstname' =&gt; $request-&gt;firstname,
              'lastname' =&gt; $request-&gt;lastname,
              'phone' =&gt; $request-&gt;phone,
              'email' =&gt; $request-&gt;email,
              'password' =&gt; Hash::make($request-&gt;password),
              'city' =&gt; $request-&gt;town,
          ]);
  
          event(new Registered($user)); //Send email verif
  
          return;
  
          Auth::login($user);
  
          return redirect(RouteServiceProvider::HOME)-&gt;with(&quot;register&quot;, true);
      }
  }
  </code></pre>
  <p>The <code>User.php</code> modal:</p>
  <pre><code>&lt;?php
  
  namespace App\Models;
  
  use Illuminate\Contracts\Auth\MustVerifyEmail;
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  use Illuminate\Notifications\Notifiable;
  use Laravel\Sanctum\HasApiTokens;
  use Illuminate\Database\Eloquent\SoftDeletes;
  use Illuminate\Support\Facades\Auth;
  use Illuminate\Database\Eloquent\Prunable;
  
  use App\Models\Favorite;
  
  class User extends Authenticatable implements MustVerifyEmail
  {
      use HasApiTokens, HasFactory, Notifiable, SoftDeletes, Prunable;
      /**
       * The attributes that are mass assignable.
       *
       * @var array&lt;int, string&gt;
       */
      protected $fillable = [
          'firstname',
          'lastname',
          'phone',
          'email',
          'password',
          'city',
          'role'
      ];
  
      /**
       * The attributes that should be hidden for serialization.
       *
       * @var array&lt;int, string&gt;
       */
      protected $hidden = [
          'password',
          'remember_token',
      ];
  
      /**
       * The attributes that should be cast.
       *
       * @var array&lt;string, string&gt;
       */
      protected $casts = [
          'email_verified_at' =&gt; 'datetime',
      ];
  }
  </code></pre>