title: Laravel seeder with relation fill only one column
body: <p>I have an issue with my migrations and my seeder.</p>
  <p>I just want seed a product table with category as relations.</p>
  <p>Here my Product seeder :</p>
  <pre><code> $product = Product::firstOrCreate(
              ['name' =&gt; 'Bla bla bla'],
              ['category_id' =&gt; rand(1,4)],
              ['code' =&gt; &quot;SP&quot; . rand(1, 50) ],
              ['description' =&gt; &quot;Bla bla bla&quot;],
              ['actual_price' =&gt; rand(100, 10000) / 100],
              ['sale_price' =&gt; rand(100, 10000) / 100],
              ['status' =&gt; PublishStatus::PUBLISHED()]
          );
  </code></pre>
  <p>Here my Product migrations table :</p>
  <pre><code>Schema::create('products', function (Blueprint $table) {
          $table-&gt;id();
          $table-&gt;bigInteger('category_id')-&gt;unsigned();
          $table-&gt;foreign('category_id')-&gt;references('id')-&gt;on('categories');
          $table-&gt;string('name')-&gt;index('product_name_index');
          $table-&gt;string('code')-&gt;index('product_code_index');
          $table-&gt;text('description')-&gt;nullable();
          $table-&gt;double('actual_price')-&gt;default(0);
          $table-&gt;double('sale_price')-&gt;default(0);
          $table-&gt;timestamps();
          $table-&gt;softDeletes();
      });
  </code></pre>
  <p>When I run migrations and seeding like this :</p>
  <pre><code>php artisan migrate:fresh --seed
  </code></pre>
  <p>everything going well BUT, I have only the column &quot;name&quot; who is filled like this :</p>
  <pre><code> #attributes: array:15 [
  &quot;id&quot; =&gt; 4
  &quot;category_id&quot; =&gt; 4
  &quot;name&quot; =&gt; &quot;Active Directory Pentest&quot;
  &quot;code&quot; =&gt; &quot;&quot;
  &quot;description&quot; =&gt; null
  &quot;actual_price&quot; =&gt; 0.0
  &quot;sale_price&quot; =&gt; 0.0
  &quot;status&quot; =&gt; &quot;unpublished&quot;
  &quot;is_featured&quot; =&gt; 0
  &quot;opening_quantity&quot; =&gt; 0.0
  &quot;alert_quantity&quot; =&gt; 0.0
  &quot;quantity&quot; =&gt; 0.0
  &quot;created_at&quot; =&gt; &quot;2022-09-20 09:46:01&quot;
  &quot;updated_at&quot; =&gt; &quot;2022-09-20 09:46:01&quot;
  &quot;deleted_at&quot; =&gt; null
  </code></pre>
  <p>]</p>
  <p>And I don't understand why...</p>
  <p>(I don't want use faker factory because I have to use real data in my seeder)</p>