title: Column does not exist Laravel Factory
body: <p>I have a table</p>
  <pre><code>public function up()
  {
      Schema::create('parties', function (Blueprint $table) {
          $table-&gt;id();
          $table-&gt;integer('place_id');
          $table-&gt;tinyInteger('status')-&gt;default(0);
          $table-&gt;dateTime('utc_date');
          $table-&gt;dateTime('local_date');
          $table-&gt;timestamps();
      });
  
      Schema::table('parties', function (Blueprint $table) {
          $table-&gt;index('place_id');
  
          $table-&gt;foreign('place_id')
              -&gt;references('id')
              -&gt;on('places')
              -&gt;onDelete('restrict');
      });
  }
  </code></pre>
  <p>and model factory</p>
  <pre><code>&lt;?php
  
  /** @var \Illuminate\Database\Eloquent\Factory $factory */
  
  use App\Models\Party;
  use Faker\Generator as Faker;
  
  $factory-&gt;define(Party::class, function (Faker $faker) {
      $date = $faker-&gt;dateTimeBetween(now()-&gt;subDays(3), now());
  
      return [
          'place_id' =&gt; $faker-&gt;numberBetween(1, 9),
          'status' =&gt; $faker-&gt;numberBetween(0, 3),
          'utc_date' =&gt; $date,
          'local_date' =&gt; \Carbon\Carbon::make($date)-&gt;addHours(3),
      ];
  });
  </code></pre>
  <p>If i call the method create in HomeController it works correctly</p>
  <pre><code>    factory(Party::class, 10)-&gt;create();
  </code></pre>
  <p>but when i call it in my tests I got an error</p>
  <blockquote>
  <p>SQLSTATE[42703]: Undefined column: 7 ERROR:  column &quot;utc_date&quot; of
  relation &quot;parties&quot; does not exist LINE 1: insert into &quot;parties&quot;
  (&quot;place_id&quot;, &quot;status&quot;, &quot;utc_date&quot;, &quot;lo...
  ^ (SQL: insert into &quot;parties&quot; (&quot;place_id&quot;, &quot;status&quot;, &quot;utc_date&quot;, &quot;local_date&quot;,
  &quot;updated_at&quot;, &quot;created_at&quot;) values (5, 3, 2020-08-04 00:34:52,
  2020-08-04 03:34:52, 2020-08-04 11:42:18, 2020-08-04 11:42:18)
  returning &quot;id&quot;)</p>
  </blockquote>
  <pre><code>&lt;?php
  
  namespace Tests\Feature\API;
  
  use App\User;
  use Tests\TestCase;
  use Laravel\Sanctum\Sanctum;
  use App\Models\{Party, Place};
  use Illuminate\Foundation\Testing\RefreshDatabase;
  
  class PartiesControllerTest extends TestCase
  {
      use RefreshDatabase;
  
      private User $user;
  
      protected function setUp(): void
      {
          parent::setUp();
          $this-&gt;user =  factory(User::class)-&gt;create();
      }
  
      public function test_get_parties()
      {
          factory(Party::class)-&gt;create([
              'place_id' =&gt; factory(Place::class)-&gt;create()-&gt;id,
          ]);
  
          dd(Party::all());
          Sanctum::actingAs($this-&gt;user);
      }
  }
  </code></pre>