Skip to content

Upgrade to Filament 5 and Pest 4 with test database config#23

Open
frikishaan wants to merge 5 commits into
mainfrom
claude/upgrade-filament-v5-YwGKp
Open

Upgrade to Filament 5 and Pest 4 with test database config#23
frikishaan wants to merge 5 commits into
mainfrom
claude/upgrade-filament-v5-YwGKp

Conversation

@frikishaan

Copy link
Copy Markdown
Owner

Summary

This PR upgrades the project to Filament 5.0 and Pest 4.0, along with related testing dependencies. It also enables SQLite in-memory database for testing and updates compiled JavaScript assets.

Key Changes

  • Dependency Updates:

    • Upgraded filament/filament from ~4.0 to ~5.0
    • Upgraded pestphp/pest from ^3.0 to ^4.0
    • Upgraded pestphp/pest-plugin-laravel from ^3.2.0 to ^4.0
    • Upgraded pestphp/pest-plugin-livewire from ^3.0 to ^4.0
    • Upgraded phpunit/phpunit from ^11.3 to ^12.0
  • Test Configuration:

    • Enabled SQLite in-memory database for testing by uncommenting DB_CONNECTION and DB_DATABASE environment variables in phpunit.xml
  • Asset Updates:

    • Recompiled JavaScript assets for Filament 5 compatibility across:
      • Form components (rich-editor, markdown-editor, code-editor, file-upload, select, etc.)
      • Table components (select column)
      • Widget components (chart, stats-overview)
      • Core modules (actions, notifications, schemas, tables)
    • Updated font assets with new Inter font files for improved typography support

Notable Details

  • All JavaScript changes are compiled/minified assets reflecting Filament 5 framework updates
  • The test database configuration change enables faster test execution using in-memory SQLite
  • Font file updates include new character set support (Cyrillic, Greek extensions)

https://claude.ai/code/session_01NHazKfrcS1r1iHvphyJbDf

claude added 5 commits May 15, 2026 05:41
- Upgrade filament/filament from ~4.0 to ~5.0 (now at v5.6.3)
- Upgrade livewire/livewire from v3 to v4 (required by Filament v5)
- Upgrade pestphp/pest from ^3.0 to ^4.0
- Upgrade pestphp/pest-plugin-laravel from ^3.2 to ^4.0
- Upgrade pestphp/pest-plugin-livewire from ^3.0 to ^4.0
- Upgrade phpunit/phpunit from ^11.3 to ^12.0
- Enable SQLite in-memory database in phpunit.xml for test isolation
- Publish updated Filament v5 frontend assets

All 68 tests pass.

https://claude.ai/code/session_01NHazKfrcS1r1iHvphyJbDf
…nit v11

PHPUnit 12 crashes on PHP 8.2 because gc_status() only returns the timing
keys (application_time, collector_time, etc.) on PHP 8.3+.

- Downgrade pestphp/pest from ^4.0 to ^3.0 (now at v3.8.6)
- Downgrade pestphp/pest-plugin-laravel from ^4.0 to ^3.2
- Downgrade phpunit/phpunit from ^12.0 to ^11.3 (now at v11.5.50)
- Remove pestphp/pest-plugin-livewire (no v3 compatible with livewire v4)
- Add tests/livewire.php: custom Pest\Livewire\livewire() shim that wraps
  Livewire::test() from livewire v4 directly, preserving the function
  signature all test files already import
- Update phpunit.xml schema reference to 11.3
- Register tests/livewire.php in autoload-dev.files

All 68 tests pass on PHP 8.2.

https://claude.ai/code/session_01NHazKfrcS1r1iHvphyJbDf
- Require php ^8.3 in composer.json
- Update CI matrix from ["8.2", "8.3"] to ["8.3", "8.4", "8.5"]
- Update composer.lock platform metadata

https://claude.ai/code/session_01NHazKfrcS1r1iHvphyJbDf
- laravel/framework: ^12.0 → ^13.0 (now at v13.9.0)
- laravel/tinker: ^2.8 → ^3.0 (required for Laravel 13 support)
- flowframe/laravel-trend: ^0.4.0 → ^0.5.0 (adds Laravel 13 support)
- barryvdh/laravel-debugbar: ^3.13 → ^4.0 (adds Laravel 13 support)

All 68 tests pass.

https://claude.ai/code/session_01NHazKfrcS1r1iHvphyJbDf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants