v2.0.0
🚀 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
andSchemaSourceProvider
are now registered withbind
instead ofsingleton
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!