original_string: private function createUsersTable()
      {
          Schema::create('users', function ($table) {
              foreach ($this->fields as $field => $value) {
                  $query = $table->$value['type']($field);
  
                  if (isset($value['extra'])) {
                      $query->$value['extra']();
                  }
              }
  
              $table->foreign('role_id')->references('id')->on('roles');
              $table->timestamps();
              $table->softDeletes();
          });
      }
code: private function createUsersTable()
      {
          Schema::create('users', function ($table) {
              foreach ($this->fields as $field => $value) {
                  $query = $table->$value['type']($field);
  
                  if (isset($value['extra'])) {
                      $query->$value['extra']();
                  }
              }
  
              $table->foreign('role_id')->references('id')->on('roles');
              $table->timestamps();
              $table->softDeletes();
          });
      }
code_tokens: private function createUsersTable ( ) { Schema :: create ( 'users' , function ( $ table ) { foreach ( $ this -> fields as $ field => $ value ) { $ query = $ table -> $ value [ 'type' ] ( $ field ) ; if ( isset ( $ value [ 'extra' ] ) ) { $ query -> $ value [ 'extra' ] ( ) ; } } $ table -> foreign ( 'role_id' ) -> references ( 'id' ) -> on ( 'roles' ) ; $ table -> timestamps ( ) ; $ table -> softDeletes ( ) ; } ) ; }
docstring: Create a new Users table with
  all the required fields
docstring_tokens: Create a new Users table with all the required fields