public static function setUpBeforeClass() { $schema = Capsule::schema(); $schema->dropIfExists('menu_items'); Capsule::disableQueryLog(); $schema->create('menu_items', function (\Illuminate\Database\Schema\Blueprint $table) { $table->increments('id'); $table->unsignedInteger('menu_id'); $table->string('title')->nullable(); NestedSet::columns($table); }); Capsule::enableQueryLog(); }