title: i'm unable to use signIn... laravel
body: <p>i'm unable to SignIn , my error is</p>
  
  <blockquote>
    <p>ErrorException in EloquentUserProvider.php line 114: Argument 1 passed
    to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be
    an instance of Illuminate\Contracts\Auth\Authenticatable, instance of
    App\User given, called in C:\wamp64\www\Final
    Group\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on
    line 385 and defined</p>
  </blockquote>
  
  <p>my code:</p>
  
  <p>my controller file : </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Support\Facades\Input;
  
  //use Illuminate\Support\Facades\Flash;
  use InvalidConfirmationCodeException;
  
  use Flash;
  
  //use Mail;
  
  use App\User;
  
  use Illuminate\Http\Request;
  
  use Illuminate\Support\Facades\Auth;
  
  use Illuminate\Support\Facades\Mail;
  
  use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
  
  
  class UserController extends Controller
  
  {
  
      public function getDashboard()
  
  
         {
  
               return view('dashboard');
         }
  
  
       public function postSignUp(Request $request)
       {
  
  
         $email = $request['email'];
         $first_name = $request['first_name'];
         $password = bcrypt($request['password']);
  
  
  
          $user = new User();
          $user-&gt;email =$email;
          $user-&gt;first_name = $first_name;
          $user-&gt;password = $password;
  
  
          $user-&gt;save();
  
  
  
  
          return redirect()-&gt;route('dashboard');
  
          Auth::login($user);
  
  
       }
  
       public function postSignIn(Request $request)
       {
  
          if (Auth::attempt(['email' =&gt; $request['email'], 'password' =&gt; $request['password']]))  {
  
              return redirect()-&gt;route('dashboard');
          }
  
                 return redirect()-&gt;back();
  
       }
  
  
  }
  </code></pre>
  
  <p>my route file: </p>
  
  <pre><code>&lt;?php
  
  
  
  /*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the controller to call when that URI is requested.
  |
  */
  
  Route::get('/', function () {
      return view('welcome');
  });
  
              Route::post('/signup',[
                  'uses' =&gt; 'UserController@postSignUp',
                  'as'   =&gt; 'signup'
  
  
                  ]);
  
              Route::post('/signin',[
                  'uses' =&gt; 'UserController@postSignIn',
                  'as'   =&gt; 'signin'
  
  
                  ]);
  
              Route::get('/dashboard',[
                   'uses' =&gt; 'UserController@getDashboard',
                   'as'   =&gt; 'dashboard'
                  ]);
  
  
  //Route::auth();
  
  //Route::get('/home', 'HomeController@index');
  </code></pre>
  
  <p>my view file :</p>
  
  <pre><code>@extends('layouts.master')
  
  @section('title')
  
  
  Welcome
  
  
  @endsection
  
  @section('content')
  
  
  &lt;div class="row"&gt;
  
     &lt;div class="col-md-6"&gt;
  
         &lt;h3&gt;Sign Up&lt;/h3&gt;
  
         &lt;form action="{{route('signup')}}" method="post"&gt;
  
            &lt;div class="form-group"&gt;
  
                &lt;label for="email"&gt;Your Email&lt;/label&gt;
  
                &lt;input  class="form-control" type="text" name="email" id="email"&gt;
  
            &lt;/div&gt;
  
            &lt;div class="form-group"&gt;
  
                &lt;label for="first_name"&gt;Your Name&lt;/label&gt;
  
                &lt;input  class="form-control" type="text" name="first_name" id="first_name"&gt;
  
            &lt;/div&gt;
  
            &lt;div class="form-group"&gt;
  
                &lt;label for="password"&gt;Your Password&lt;/label&gt;
  
                &lt;input  class="form-control" type="password" name="password" id="password"&gt;
  
            &lt;/div&gt;  
  
                &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
                &lt;input type="hidden" name="_token" value="{{Session::token()}}"&gt;
  
         &lt;/form&gt;
  
  
  
  
     &lt;/div&gt;
  
  
            &lt;div class="col-md-6"&gt;
  
         &lt;form action="{{route('signin')}}" method="post"&gt;
  
               &lt;h3&gt;Sign In &lt;/h3&gt;
  
            &lt;div class="form-group"&gt;
  
                &lt;label for="email"&gt;Your Email&lt;/label&gt;
  
                &lt;input  class="form-control" type="text" name="email" id="email"&gt;
  
            &lt;/div&gt;
  
  
  
            &lt;div class="form-group"&gt;
  
                &lt;label for="password"&gt;Your Password&lt;/label&gt;
  
                &lt;input  class="form-control" type="password" name="password" id="password"&gt;
  
            &lt;/div&gt;  
  
                &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
                &lt;input type="hidden" name="_token" value="{{Session::token()}}"&gt;
  
         &lt;/form&gt;
  
  
     &lt;/div&gt;
  
  
  &lt;/div&gt;
  
  @endsection 
  </code></pre>
  
  <p>my  dashboard : <h1>Dashboard</h1></p>