Releases: denis660/laravel-centrifugo
v5.0
🚀 Release of a new version of the package with Laravel 11 support
We are excited to announce the release of a new version of our package with full Laravel 11 support. This version introduces significant improvements aimed at enhancing stability and usability:
-
Laravel 11 Support: The package is now fully compatible with the latest version of Laravel, ensuring smooth operation with the new features and capabilities of the framework. 🎉
-
Automated Testing: We have included automated tests to verify code quality and ensure that nothing breaks during development and updates. This guarantees the package’s stability in future releases. ✅
-
Support for the Latest Centrifugo API: The package has been updated to support the most recent version of the Centrifugo API, providing enhanced performance and access to the latest features of this tool. 💡
-
Bug Fixes: We’ve addressed bugs reported in issues and pull requests. We appreciate the community's active feedback and contributions to improving the package. 🛠️
We are confident that this update will enhance your experience working with Laravel and Centrifugo. Thank you for using our package! 🙏
3.1
3.0.1
Upgrading to Laravel 9
Due to security updates, the following dependencies have been updated
- Removed support for Laravel 7.3
- Minimum version of Laravel 8.75.0
- Minimum PHP version 7.4
Added support for Laravel 9
2.0.0 Upgrade to centrifugo v 3
There are config file changes here that are not backward compatible!
You only need to change the name of the variables.
Otherwise, your code should work the same as it did in version 1.
The update was related to the transition to CENTRIFUGO v3, if you are using CENTRIFUGO v2, I recommend first reading the update information on v3 https://centrifugal.dev/docs/getting-started/migration_v3
- Added optional parameters limit, since, reversehistory to the history method. Now, by default, the history is not returned, it is necessary to transfer a limit on how many last messages need to be received
- Added optional skipHistor parameter for method publish and method broadcast
- Added optional pattern parameter for method channels
- Added optional client parameter to unsubscribe method
- Added the optional channels parameter to the generateConnectionToken method
- Added subscribe method
Changing the names of the config / broadcasting.php variables, here is the new code for your file
'centrifugo' => [
'driver' => 'centrifugo',
'token_hmac_secret_key' => env('CENTRIFUGO_TOKEN_HMAC_SECRET_KEY',''),
'api_key' => env('CENTRIFUGO_API_KEY',''),
'url' => env('CENTRIFUGO_URL', 'http://localhost:8000'),
'verify' => env('CENTRIFUGO_VERIFY', false),
'ssl_key' => env('CENTRIFUGO_SSL_KEY', null),
],
in your .env replace
CENTRIFUGO_SECRET to CENTRIFUGO_TOKEN_HMAC_SECRET_KEY
CENTRIFUGO_APIKEY to CENTRIFUGO_API_KEY