title: Trait 'Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers' not found in Laravel 5.3
body: <p>How to solve this problem? I alreay tried to use all the solution from the net and i tried also to use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers but none of them works?. If anyone knows how to solve this please help me. I want to get rid of this error. Thanks in advance</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
  use Illuminate\Support\Facades\Validator;   
  use Illuminate\Support\Facades\Input;
  use Illuminate\Support\Facades\Redirect;
  
  use Illuminate\Routing\Controller as BaseController;
  use Theme;
  use Auth;
  use App\Login;
  use Illuminate\Foundation\Auth\ThrottlesLogins;
  use App\Http\Controllers\Auth\RegisterController;
  class LoginController extends BaseController
  {
  
  /*
  |--------------------------------------------------------------------------
  | Login Controller
  |--------------------------------------------------------------------------
  |
  | This controller handles authenticating users for the application and
  | redirecting them to your home screen. The controller uses a trait
  | to conveniently provide its functionality to your applications.
  |
  */
  
  use AuthenticatesAndRegistersUsers, ThrottlesLogins;
  
  /**
   * Where to redirect users after login / registration.
   *
   * @var string
   */
  protected $redirectTo = '/';
  
  
  /**
   * Create a new controller instance.
   *
   * @return void
   */
  
  public function __construct()
  {
      $this-&gt;middleware('guest', ['except' =&gt; 'logout']);
  }
  
  
  public function signin(){
  
      if(Auth::check()){
  
          return Redirect::to('/');
  
      }else{
          $theme = Theme::uses('default')-&gt;layout('default');
          return $theme-&gt;of('login.sign-in')-&gt;render();
      }
  
  }
  
  
  
  public function login(){
  
  
      $data = array(
          'email' =&gt; Input::get('email'),
          'password' =&gt; Input::get('password')
      );
  
     $validator= RegisterController::validator($data);
  
      if($validator){
          return Redirect::to('/login')-&gt;withErrors([$validator-&gt;errors()-&gt;all() ]);
      }else{
          return Redirect::to('/');
      }
  }
  
  
  
  
        //  RegisterController::create($data);
  
         // Login::Insert($data);
        //  $checkuser = Login::Login($data);
  
  
  
  
  
  function logout(){
      Auth::logout();
      return Redirect::to('login');
   }
  
   }
  </code></pre>