How to login without password using Auth::attempt in Laravel 5.0?
<p>I am using Laravel 5.0. I want do a login only with username (no password) because I am using Single Sign On to access to my Laravel project, so if user success login in Single Sign On, it will check to my database if the username of the user who login has registered or not.<br>
I have looking for this all day but I still have found the clue.<br><br> 
I have got an error:</p>

<blockquote>
  <p>Argument 1 passed to Illuminate\Auth\Guard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given</p>
</blockquote>

<p>if I am using the code below in my LoginController:</p>

<pre><code>$user = User::where('USER_NAME', '=', $_GET['UserName'])-&gt;first();
if(Auth::login($user)-&gt;USER_ID == $_GET['UserName']){
   return redirect('Home');
}
</code></pre>

<p>And if I am using the code below in my LoginController:</p>

<pre><code>if(Auth::attempt(['USER_ID' =&gt; $_GET['UserName']])){
   return redirect('Home');
}
</code></pre>

<p>I have got an error:</p>

<blockquote>
  <p>Undefined index: password</p>
</blockquote>