Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spatie/laravel-package-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.20.0
Choose a base ref
...
head repository: spatie/laravel-package-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.20.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Mar 21, 2025

  1. Fix: Code Improvements & Consistent for Migrations

    tech-wolf-tw committed Mar 21, 2025
    Copy the full SHA
    1f4edd1 View commit details
  2. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Mar 21, 2025
    Copy the full SHA
    e249aa4 View commit details
  3. Merge pull request #163 from tech-wolf-tw/fix/code-improvements-make-…

    …consistent
    
    Fix: Code Improvements & Consistent for Migrations
    freekmurze authored Mar 21, 2025
    Copy the full SHA
    26c6038 View commit details
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

All notable changes to `laravel-package-tools` will be documented in this file.

## 1.20.0 - 2025-03-21

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.91.1...1.20.0

## 1.91.1 - 2025-03-21

### What's Changed
Original file line number Diff line number Diff line change
@@ -61,5 +61,5 @@ public function configurePackage(Package $package)
$migrator = app('migrator');

$this->assertCount(6, $migrator->paths());
$this->assertStringContainsString('laravel_package_tools', $migrator->paths()[1]);
$this->assertStringContainsString('laravel_package_tools', $migrator->paths()[0]);
});
4 changes: 2 additions & 2 deletions tests/PackageServiceProviderTests/PackageMigrationTest.php
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ public function configurePackage(Package $package)
->name('laravel-package-tools')
->hasMigration('create_another_laravel_package_tools_table')
->hasMigration('create_regular_laravel_package_tools_table')
->hasMigration('2025_03_14_011123_create_custom_table')
->hasMigration('2025_03_14_011123_create_laravel_package_tools_table')
->runsMigrations();
}
}
@@ -35,7 +35,7 @@ public function configurePackage(Package $package)
->doesntExpectOutput('hey')
->assertExitCode(0);

assertMigrationPublished('2020_01_01_000003_create_custom_table.php');
assertMigrationPublished('2020_01_01_000003_create_laravel_package_tools_table.php');
});

it('can publish the migration without being stubbed', function () {