Laravel 8.19 Released

Laravel 8.19 Released

The Laravel team released 8.19 yesterday with job encryption, delaying queue jobs until after a transaction, a schedule:list artisan command, and the latest changes in the 8.x branch:

Delay Queue Jobs During a DB Transaction

Mohamed Said contributed the ability to delay queue jobs until after all database transactions are committed:

DB::transaction(function(){
    $user = User::create(...);
    SendWelcomeEmail::dispatch($user)->afterCommit();
});

You can also configure queue connections with the after_commit boolean to make this behavior the default. In the case of rollbacks, jobs are discarded.

Add has() method to ComponentAttributeBag

Erik C. Forés contributed a new method to determine if a given attribute is present on a component, which returns a boolean:

@if ($attributes->has('class'))
    <div>Class Attribute Present</div>
@endif

Add schedule:list Command

Andrew Brown contributed a schedule:list command to list out scheduled task details. This feature is inspired by the ThenPingMe thenpingme:schedule command.

php artisan schedule:list

Introducing Job Encryption

Mohamed Said contributed to the introduction of queue job encryption, providing a UsesEncryption interface that will encrypt the command inside the payload and decrypt it when running CallQueueHandler.

Encrypting the command payload hides the job class properties which may hold sensitive information (API keys, passwords, personal information, etc…).

For more details, check out Pull Request #35527.

Release Notes

You can see the full list of new features and updates below and the diff between 8.18.0 and 8.19.0 on GitHub. The following release notes are directly from the changelog:

8.19.0

Added

Fixed

  • Handle Throwable exceptions on Illuminate\Redis\Limiters\ConcurrencyLimiter::block() (#35546)
  • Fixed PDO passing in SqlServerDriver (#35564)
  • When following redirects, terminate each test request in proper order (#35604)

Filed in: News / Laravel 8

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Software Developer
Remote (US & Canada)
Alley
😎 Laravel Developer
Remote
Jogg, Inc
Junior, Mid, and Senior Software Engineers. Laravel / Vue. Saint Petersburg, FL
Saint Petersburg, FL and Remote
ShineOn
Senior PHP Developer (Laravel)
Remote
The Interaction Design Foundation
Fullstack Laravel Engineer (Munich/Remote) 💻
Munich, Germany or Remote
AirLST GmbH