Laravel 5.6.19 Released

Published on by

Laravel 5.6.19 Released image

Laravel version 5.6.19 was released yesterday with support for multiple CC, BCC, and Reply-To recipients. Also, the Optional class now implements the __isset() magic method.

The Optional class now implements the magic method __isset(). In the issue, the PR references this example of why __isset() is needed for optional:

$user = User::find(1);
$hasPhoneNumber = !empty(optional($user->contacts->first())->cellphone);

Because Optional did not support __isset(), the $hasPhoneNumber variable in the example above will always be false. The __isset() method is triggered by calling isset() or empty() in inaccessible object properties.

Support for a custom SparkPost endpoint means that you can now configure the endpoint in the config/services.php configuration file:

'sparkpost' => [
'secret' => env('SPARKPOST_SECRET'),
'options' => [
'endpoint' => env('SPARKPOST_ENDPOINT');
]
],

If the endpoint option isn’t set or is null, the configuration uses the default endpoint (https://api.sparkpost.com/api/v1/transmissions).

The last new feature is the ability to define multiple CC, BCC, and Reply-To recipients on mail notifications. These abilities were already possible on mailables, and are now possible on mail notifications.

Additionally, two new fixes ship as part of the 5.6.19 release. Here are the full release notes:

v5.6.19 (2018-04-30)

Added

  • Added support for custom SparkPost endpoint (#23910)
  • Added Optional::__isset() handling (#24042)
  • Added support for multiple cc, bcc and reply-to recipients on mail notifications (#23760)

Fixed

  • Accept only two arguments on orWhereDate() (#24043)
  • Fixed relative route URL generation when using custom host formatter (#24051)
Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
DocuWriter.ai

Save hours of manually writing Code Documentation, Comments & DocBlocks, Test suites and Refactoring.

Visit DocuWriter.ai
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
LoadForge logo

LoadForge

Easy, affordable load testing and stress tests for websites, APIs and databases.

LoadForge
Paragraph logo

Paragraph

Manage your Laravel app as if it was a CMS – edit any text on any page or in any email without touching Blade or language files.

Paragraph
Lucky Media logo

Lucky Media

Bespoke software solutions built for your business. We ♥ Laravel

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
Bacancy - Staff Augmentation logo

Bacancy - Staff Augmentation

Leave your web app development hustles to the leading IT Staff Augmentation Service Providers. Choose from an extensive pool of 1050+ developers and give yourself the sigh of success you deserve with Bacancy. Get In Touch Today!

Bacancy - Staff Augmentation
DocuWriter.ai logo

DocuWriter.ai

Save hours of manually writing Code Documentation, Comments & DocBlocks, Test suites and Refactoring.

DocuWriter.ai
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector

The latest

View all →
October CMS v3.6 Ships Today, Full of New Features image

October CMS v3.6 Ships Today, Full of New Features

Read article
Laracon EU Videos are now out image

Laracon EU Videos are now out

Read article
Use Google's Gemini AI in Laravel image

Use Google's Gemini AI in Laravel

Read article
PhpStorm is getting a brand new terminal image

PhpStorm is getting a brand new terminal

Read article
Six Essential Plugins for Visual Studio Code image

Six Essential Plugins for Visual Studio Code

Read article
Modularize Your Laravel Application With the Modular Package image

Modularize Your Laravel Application With the Modular Package

Read article