Laravel 5.3 get attempt true but Auth::User return null?
<p>As the title said, in the <code>VendorController</code> <code>postLogin</code> method  <code>dd(Auth::user())</code> get the value null, but the <code>$attempt</code> get the result <code>true</code>, I can't get the data that has been attempt.</p>

<p>My <code>routes/web.php</code></p>

<pre><code>Route::group(['prefix' =&gt; 'vendor','as' =&gt; 'Vendor.'], function () {
        Route::get('login', 'VendorController@login')-&gt;name('Login');
        Route::post('login', 'VendorController@postLogin')-&gt;name('Post.Login');
});
</code></pre>

<p>My <code>VendorController</code>:</p>

<pre><code>  public function postLogin(Request $request)
  {
    $attempt = Auth::guard('vendor')-&gt;attempt([
      'acctId'   =&gt; $request-&gt;acctId,
      'password' =&gt; $request-&gt;password
    ]);

    if($attempt){
      dd(Auth::user());
    }
  }
</code></pre>

<p>My <code>Vendor</code> Model</p>

<pre><code>namespace ACME\Entities;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Auth\Authenticatable as AuthenticableTrait;
class Vendor extends Model implements Authenticatable
{
    use AuthenticableTrait;

    protected $table = 'vendor';
    protected $primaryKey = 'id';
    public $timestamps = true;
    protected $fillable = [
        'acctId',
        'password',
        'active',
        'remark'
    ];
    protected $guarded = ['password'];
}
</code></pre>

<p>My <code>config/auth.php</code></p>

<pre><code>return [

    'defaults' =&gt; [
        // 'guard' =&gt; 'web',
        // 'passwords' =&gt; 'users',
        'guard' =&gt; 'user',
        'passwords' =&gt; 'users',
    ],

    'guards' =&gt; [
        // 'web' =&gt; [
        //     'driver' =&gt; 'session',
        //     'provider' =&gt; 'users',
        // ],

        'api' =&gt; [
            'driver' =&gt; 'token',
            'provider' =&gt; 'users',
        ],

        'user' =&gt; [
            'driver' =&gt; 'session',
            'provider' =&gt; 'users',
        ],

        'admin' =&gt; [
            'driver' =&gt; 'session',
            'provider' =&gt; 'admins',
        ],
        'vendor' =&gt; [
            'driver' =&gt; 'session',
            'provider' =&gt; 'vendors',
        ],
    ],
    'providers' =&gt; [
        'users' =&gt; [
            'driver' =&gt; 'eloquent',
            'model' =&gt; ACME\Entities\User::class,
        ],
        'admins' =&gt; [
            'driver' =&gt; 'eloquent',
            'model' =&gt; ACME\Entities\Admin::class,
        ],
        'vendors' =&gt; [
            'driver' =&gt; 'eloquent',
            'model' =&gt; ACME\Entities\Vendor::class,
        ],
    ],
    'passwords' =&gt; [
        'users' =&gt; [
            'provider' =&gt; 'users',
            'email' =&gt; 'auth.emails.password',
            'table' =&gt; 'user',
            'expire' =&gt; 60,
        ],
        'admins' =&gt; [
            'provider' =&gt; 'admins',
            'email' =&gt; 'auth.emails.password',
            'table' =&gt; 'admin',
            'expire' =&gt; 60,
        ],
        'vendors' =&gt; [
            'provider' =&gt; 'vendors',
            'email' =&gt; 'auth.emails.password',
            'table' =&gt; 'vendor',
            'expire' =&gt; 60,
        ],
    ],

];
</code></pre>