title: Registration error, Argument 1 passed to Illuminate\Auth\SessionGuard::login() in laravel 5.8
body: <p>Modify my registration blade. I added 2 additional functions that trigger the registration of the user. The data I needed are being saved to the appropriate tables but I am having this error,</p>
  
  <blockquote>
    <p>Argument 1 passed to Illuminate\Auth\SessionGuard::login() must
    implement interface Illuminate\Contracts\Auth\Authenticatable, boolean
    given, called in
    E:\wamp64\www\aftscredit-appzcoder\vendor\laravel\framework\src\Illuminate\Foundation\Auth\RegistersUsers.php
    on line 35</p>
  </blockquote>
  
  <p>Here's my Registration controller </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\User;
  use App\Referral;
  use App\CollectorMember;
  use App\HasRoles;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use Illuminate\Support\Facades\Hash;
  use Illuminate\Support\Facades\Validator;
  use Illuminate\Foundation\Auth\RegistersUsers;
  use Illuminate\Http\Request;
  
  class RegisterController extends Controller
  {
      use RegistersUsers;
  
      protected $redirectTo = '/home';
  
  
      public function __construct()
      {
          $this-&gt;middleware('guest');       
      }
  
      public function index(Request $request)
      {
          $referral = '';
          $keyword = $request-&gt;get('search');
          $referral = Referral::where([
                           ['code', $keyword],
                           ['status', 0]
                           ])-&gt;first();        
  
          if (is_null($keyword))
              return view ( 'Auth.register');
          elseif ($referral)
              return view ( 'Auth.register', compact('referral', $referral))
                                      -&gt;withDetails ( $referral )
                                      -&gt;withQuery ( $keyword );
          else 
              return view ( 'Auth.register')-&gt;withMessage ( 'The code you provided is not EXISTING or not AVAILABLE.' );
      }
  
      protected function validator(array $data)
      {
          return Validator::make($data, [
              'name' =&gt; ['required', 'string', 'max:255'],
              'email' =&gt; ['required', 'string', 'email', 'max:255', 'unique:users'],
              'password' =&gt; ['required', 'string', 'min:8', 'confirmed'],
          ]);
      } 
  
      protected function create(array $data)
      {
  
          $user = User::create([
              'name' =&gt; $data['name'],
              'email' =&gt; $data['email'],
              'password' =&gt; Hash::make($data['password']),
          ]);
  
          $user_id = $user-&gt;id;
  
          Referral::find($data['referral_id'])-&gt;update ([
              'status'    =&gt; 1,
              'date_used' =&gt; $data['referral_date_used']
          ]);
  
  
          return CollectorMember::create ([
              'collector_id' =&gt; $data['referral_generate_by'],
              'borrower_id'  =&gt; $user_id,
              'referral_id'  =&gt; $data['referral_id'],
          ]);
  
      }
  }
  </code></pre>
  
  <p>What's causing this? thanks in advance!</p>