title: undefined type Auth
body: <pre><code>namespace App\Http\Controllers; 
  
  use Auth; 
  use Illuminate\Http\Request;
  
  class maincontroller extends Controller 
  { 
      public function home(Request $request)
      { 
          if(Auth::Attempt($request-&gt;only('email','password'))) { 
              return redirect('/'); 
          }
      }
  }
  </code></pre>