title: In Migrator.php line 418: Class 'Table' not found error on running a migration
body: <p>I want to use <a href="https://github.com/nextpay-ir/laravel-payment-gateway" rel="nofollow noreferrer">laravel-payment-gateway</a> laravel package in my project. </p>
  
  <p>It has two migration file that I added those to migration folder in laravel project. included :</p>
  
  <p><strong>create_gateway_transactions_table.php</strong></p>
  
  <p>
  
  <pre><code>namespace NextpayPayment\Gateway;
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  use Illuminate\Support\Facades\Schema;
  use NextpayPayment\Gateway\ConstGateway;
  
  class CreateGatewayTransactionsTables extends Migration
  {
      function getTable()
      {
          return config('gateway.table', 'nextpay_gateway_transactions');
      }
  
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create($this-&gt;getTable(), function (Blueprint $table) {
              $table-&gt;engine = "innoDB";
              $table-&gt;unsignedBigInteger('id', true);
              $table-&gt;enum('gateway', [
                  ConstGateway::NEXTPAY,
              ]);
              $table-&gt;integer('status')-&gt;default(ConstGateway::TRANSACTION_PENDING);
              $table-&gt;integer('state')-&gt;default(ConstGateway::TRANSACTION_PENDING);
              $table-&gt;decimal('price', 15, 2);
              $table-&gt;string('trans_id', 50)-&gt;nullable();
              $table-&gt;string('card_number', 50)-&gt;nullable();
              $table-&gt;string('ip', 20)-&gt;nullable();
              $table-&gt;timestamp('payment_date')-&gt;nullable();
              $table-&gt;unsignedBigInteger('id_commodity');
              $table-&gt;nullableTimestamps();
              $table-&gt;softDeletes();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::drop($this-&gt;getTable());
      }
  }
  </code></pre>
  
  <p>And a <strong>alter_id_in_transactions_table.php</strong> like this : </p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Support\Facades\DB;
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Support\Facades\Schema;
  use Illuminate\Database\Migrations\Migration;
  
  class AlterIdInTransactionsTables extends Migration
  {
  
      function getTable()
      {
          return config('gateway.table', 'nextpay_gateway_transactions');
      }
  
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          try {       
  //          DB::statement("update `" . $this-&gt;getTable() . "` set `payment_date`=null WHERE  `payment_date`=0;");
  //          DB::statement("ALTER TABLE `" . $this-&gt;getTable() . "` CHANGE `id` `id` BIGINT UNSIGNED NOT NULL;");
  
  
              Schema::create('nextpay_gateway_transactions', function (Blueprint $table) {
                  $table-&gt;increments('id');
                  $table-&gt;string('name');
                  $table-&gt;string('airline');
                  $table-&gt;timestamps();
              });
  
          } catch (Exception $e) {
  
          }
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
  //      DB::statement("ALTER TABLE `" . $this-&gt;getTable() . "` CHANGE `id` `id` INT(10) UNSIGNED NOT NULL;");
          Schema::drop($this-&gt;getTable());
      }
  }
  </code></pre>
  
  <p>But after run <code>php artisan migrate</code> I got this error : </p>
  
  <pre><code>In Migrator.php line 418:
  
    Class 'Table' not found
  </code></pre>
  
  <p>What is problem and how can solve that ?</p>