title: {closure}() must be an instance of Faker\Generator\Generator on laravel factory seed
body: <p>when I use
  php artisan db:seed
  I got the error?
  In <strong>UserFactory.php line 27:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>Type error: Argument 1 passed to
  Illuminate\Database\Eloquent\Factory::{closure}() must be an instance
  of Faker\Generator\Generator, instance of Faker\Generator given
  </code></pre>
  
  <p><code>Userfactory.php</code>
  use Faker\Generator as Faker;</p>
  
  <p>(this is line 27)</p>
  
  <pre><code>$factory-&gt;define(App\Models\Admin::class, function (Faker\Generator $faker) {
      static $password;
  
          return [
              'name' =&gt; $faker-&gt;name,
              'email' =&gt; $faker-&gt;safeEmail,
              'password' =&gt; $password ?: $password = bcrypt('secret'),
              'remember_token' =&gt; str_random(10),
          ];
      });
  </code></pre>
  
  <p>AdminsTableSeeder.php</p>
  
  <pre><code>public function run()
  {
      factory('App\Models\Admin',3)-&gt;create([
          'password' =&gt; bcrypt('123456')
          ]);
  }
  </code></pre>
  
  <p>DatabaseSeeder.php</p>
  
  <pre><code>public function run()
  {
      // $this-&gt;call(UsersTableSeeder::class);
      $this-&gt;call(AdminsTableSeeder::class);
  }
  </code></pre>
  
  <p>I don't know how it happens.</p>