title: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'short_description' in 'field list'
body: <p>I recieved error while i tried php artisan db:seed</p>
  <blockquote>
  <p>Illuminate\Database\QueryException</p>
  <p>SQLSTATE[42S22]: Column not found: 1054 Unknown column
  'short_description' in 'field list' (SQL: insert into <code>categories</code>
  (<code>name</code>, <code>slug</code>, <code>short_description</code>, <code>description</code>, <code>regular_price</code>,
  <code>SKU</code>, <code>stock_status</code>, <code>quantity</code>, <code>image</code>, <code>category_id</code>,
  <code>updated_at</code>, <code>created_at</code>) values (atque dicta aut voluptatum,
  atque-dicta-aut-voluptatum, Id repellat nesciunt sit omnis et nihil
  magnam. Incidunt a voluptatum praesentium tempore non et nesciunt.
  Saepe iste qui voluptatem. Rerum nobis voluptatibus sint
  voluptatibus., Nulla modi quos porro numquam eius ullam sed. Ad
  voluptatibus quia velit. Voluptas iure molestiae veniam qui. Eos et
  qui quod nemo repudiandae fugit eos esse. Iste omnis ratione sunt non
  magni repudiandae distinctio. Est quia fugiat tenetur eum aspernatur
  distinctio. Rem excepturi magnam quaerat dolorem et adipisci tenetur.
  Temporibus quasi possimus sit exercitationem qui. Quia vel porro
  praesentium delectus reprehenderit enim similique. Quis quos et cum
  commodi nostrum., 330, DIGI378, instock, 158, digital_2, 2, 2021-04-16
  21:12:05, 2021-04-16 21:12:05))</p>
  </blockquote>
  <h3>Category model</h3>
  <pre class="lang-php prettyprint-override"><code>namespace App\Models;
  
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Database\Eloquent\Model;
  
  class Category extends Model
  {
      use HasFactory;
  
      protected $table = &quot;categories&quot;;
  }
  </code></pre>
  <h3>Product model</h3>
  <pre class="lang-php prettyprint-override"><code>namespace App\Models;
  
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Database\Eloquent\Model;
  
  class Product extends Model
  {
      use HasFactory;
  
      protected $table = &quot;products&quot;;
  }
  </code></pre>
  <h3>Product schema (<code>2021_04_02_190519_create_products_table.php</code>)</h3>
  <pre class="lang-php prettyprint-override"><code>use Illuminate\Database\Migrations\Migration;
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Support\Facades\Schema;
  
  class CreateProductsTable extends Migration
  {
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('products', function (Blueprint $table) {
              $table-&gt;id();
              $table-&gt;string('name');
              $table-&gt;string('slug')-&gt;unique();
              $table-&gt;string('short_description')-&gt;nullable();
              $table-&gt;text('description');
              $table-&gt;decimal('reqular_price');
              $table-&gt;decimal('sales_price')-&gt;nullable();
              $table-&gt;string('SKU');
              $table-&gt;enum('stock_status',['instock','outofstock']);
              $table-&gt;boolean('featured')-&gt;default(false);
              $table-&gt;unsignedInteger('quantity')-&gt;default(10);
              $table-&gt;string('image')-&gt;nullable();
              $table-&gt;text('images')-&gt;nullable();
              $table-&gt;bigInteger('category_id')-&gt;unsigned()-&gt;nullabe();
  
              $table-&gt;timestamps();
              $table-&gt;foreign('category_id')-&gt;references('id')-&gt;on('categories')-&gt;onDelete('cascade');
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::dropIfExists('products');
      }
  }
  </code></pre>
  <h3>Category schema (<code>2021_04_02_212544_create_categories_table.php</code>)</h3>
  <pre class="lang-php prettyprint-override"><code>use Illuminate\Database\Migrations\Migration;
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Support\Facades\Schema;
  
  class CreateCategoriesTable extends Migration
  {
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('categories', function (Blueprint $table) {
              $table-&gt;id();
              $table-&gt;string('name')-&gt;unique();
              $table-&gt;string('slug')-&gt;unique();
              $table-&gt;timestamps();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::dropIfExists('categories');
      }
  }
  </code></pre>
  <h3>Product factory</h3>
  <pre class="lang-php prettyprint-override"><code>namespace Database\Factories;
  
  use App\Models\Category;
  use Illuminate\Database\Eloquent\Factories\Factory;
  use Illuminate\Support\Str;
  
  class ProductFactory extends Factory
  {
      /**
       * The name of the factory's corresponding model.
       *
       * @var string
       */
      protected $model = Category::class;
  
      /**
       * Define the model's default state.
       *
       * @return array
       */
      public function definition()
      {
          $product_name = $this-&gt;faker-&gt;unique()-&gt;words($nb=4,$asText=true);
  
          $slug = Str::slug($product_name);
  
          return [
              'name' =&gt; $product_name,
              'slug' =&gt; $slug,
              'short_description' =&gt; $this-&gt;faker-&gt;text(200),
              'description' =&gt; $this-&gt;faker-&gt;text(500),
              'regular_price' =&gt; $this-&gt;faker-&gt;numberBetween(10, 500),
              'SKU' =&gt; 'DIGI'.$this-&gt;faker-&gt;unique()-&gt;numberBetween(100, 500),
              'stock_status' =&gt; 'instock',
              'quantity' =&gt; $this-&gt;faker-&gt;numberBetween(100, 200),
              'image' =&gt; 'digital_'.$this-&gt;faker-&gt;unique()-&gt;numberBetween(1, 22),
              'category_id' =&gt; $this-&gt;faker-&gt;numberBetween(1, 5),
          ];
      }
  }
  </code></pre>
  <h3>Category factory</h3>
  <pre class="lang-php prettyprint-override"><code>namespace Database\Factories;
  
  use App\Models\Category;
  use Illuminate\Database\Eloquent\Factories\Factory;
  use Illuminate\Support\Str;
  
  class CategoryFactory extends Factory
  {
      /**
       * The name of the factory's corresponding model.
       *
       * @var string
       */
      protected $model = Category::class;
  
      /**
       * Define the model's default state.
       *
       * @return array
       */
      public function definition()
      {
          $category_name = $this-&gt;faker-&gt;unique()-&gt;words($nb = 2, $asText = true);
  
          $slug = Str::slug($category_name);
  
          return [
              'name'=&gt;$category_name,
              'slug'=&gt;$slug,
          ];
      }
  }
  </code></pre>