The package drops support for Laravel 10 and adds support for Laravel 12.
The package now uses config()->string() and config()->array() to enforce receiving the correct types from the Laravel configuration file.
This should not give any problems but you should verify the configuration settings.
There are no other breaking changes.
The following environment variables have been shortened:
STACKKIT_CLOUD_TASKS_PROJECT→CLOUD_TASKS_PROJECTSTACKKIT_CLOUD_TASKS_LOCATION→CLOUD_TASKS_LOCATIONSTACKKIT_CLOUD_TASKS_QUEUE→CLOUD_TASKS_QUEUESTACKKIT_CLOUD_TASKS_HANDLER→CLOUD_TASKS_HANDLERSTACKKIT_CLOUD_TASKS_SERVICE_EMAIL→CLOUD_TASKS_SERVICE_EMAIL
The following environment variables have been renamed to be more consistent:
STACKKIT_APP_ENGINE_TASK→CLOUD_TASKS_APP_ENGINE_TASKSTACKKIT_APP_ENGINE_SERVICE→CLOUD_TASKS_APP_ENGINE_SERVICE
The following environment variable has been removed:
STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE
The dashboard has been removed to keep the package minimal. A separate composer package might be created with an updated version of the dashboard.
The configuration file has been updated to reflect the removed dashboard and to add new configurable options.
Please publish the new configuration file:
php artisan vendor:publish --tag=cloud-tasks --forceThe dispatch_deadline has been removed from the task configuration. You may now use Laravel's timeout configuration to control the maximum execution time of a task.
PHP 7.2 and 7.3, and Laravel 5.x are no longer supported.
The handler URL environment has been simplified. Please change it like this:
# Before
STACKKIT_CLOUD_TASKS_HANDLER=https://my-app/handle-task
# After
STACKKIT_CLOUD_TASKS_HANDLER=https://my-appIt's also allowed to remove this variable entirely in 3.x: The package will automatically use the application URL if the STACKKIT_CLOUD_TASKS_HANDLER
environment is not present. If you omit it, please ensure the trusted proxy have been configured
in your application. Otherwise, you might run into weird issues. :-)