spatie/laravel-package-tools
A base PackageServiceProvider for Laravel package authors to quickly register and publish config, views, translations, assets, routes, migrations, commands, view components/composers, and an optional interactive install command.
PackageServiceProvider, maintaining alignment with Laravel’s modular design.PackageTestCase remains the primary testing mechanism.2023_0101000000_create_table vs. 2023_0101000000_update_table).PackageTestCase to verify migration uniqueness after applying the fix.ServiceProvider boilerplate (unchanged).PackageTestCase to ensure no timestamp collisions.MigrationTableNotFoundException).yourpackage:publish --help).| Risk | Mitigation | Impact |
|---|---|---|
| Laravel version mismatch | Pin exact Laravel version in composer.json |
CI/CD failures |
| Migration collisions | Use PackageTestCase to validate uniqueness |
Runtime errors (mitigated by 1.93.1) |
| Command execution failures | Retries in CI for flaky commands | Delayed deployments |
| Asset publishing issues | Validate paths in PackageTestCase |
Frontend rendering bugs |
spatie/laravel-package-tools.PackageTestCase before full integration.PackageServiceProvider.configurePackage().How can I help you explore Laravel packages today?