title: Trait 'Illuminate\Foundation\Auth\AuthenticatesUsers' not found on laravel 7x
body: <p>I cant understand why I am getting the above error when I navigate to the admin login page of my Laravel project. The Laravel version is 7x. How can i fix this?</p>
  
  <p><a href="https://i.stack.imgur.com/0R5sm.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/0R5sm.jpg" alt="enter image description here"></a></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Admin;
  
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  
  
  class LoginController extends Controller
  {
      use AuthenticatesUsers;
  
      /**
       * Where to redirect admins after login.
       *
       * @var string
       */
      protected $redirectTo = '/admin';
  
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest:admin')-&gt;except('logout');
      }
  
      /**
       * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
       */
      public function showLoginForm()
      {
          return view('admin.auth.login');
      }
  }
  </code></pre>