Skip to content

v2.0.0

Compare
Choose a tag to compare
@as-yakovenko as-yakovenko released this 15 Jun 08:57
· 3 commits to main since this release

🚀 New in v2.0.0: - Octane & Worker Support

Since v2.0.0, this package is fully compatible with Laravel Octane and any long-lived worker environment (Swoole, RoadRunner, etc).

  • ASTCache and SchemaSourceProvider are now registered with bind instead of singleton to ensure a fresh context per request.
  • This change is required for correct schema resolution and cache separation in Octane/Swoole/RoadRunner.

⚠️ Breaking Change

If you relied on ASTCache or SchemaSourceProvider being singletons, please update your code accordingly.
From v2.0.0, these services are no longer singletons!

How to upgrade

  • Clear all caches:
    php artisan config:clear && php artisan cache:clear && php artisan lighthouse:clear-cache
  • Make sure you do not store the request object in any singleton or static property.

New in v2.0.0: Full support for Laravel Octane and long-lived workers!