d

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.

15 St Margarets, NY 10033
(+381) 11 123 4567
ouroffice@aware.com

 

KMF

Laravel 8.20 Released – Laravel News

The Laravel team released 8.20 this week with cache lock connection configuration, the ability to provide default values when syncing a pivot table, and the latest changes in the 8.x branch:

Separate Lock Connection for Cache Stores

Paras Malhotra contributed the ability to configure a separate lock connection for cache stores. It’s common to clear caches during things like deployments, however, doing so could break unique jobs or session blocking. You can now use a lock_connection configuration property to define the cache connection used for locks:

'stores' => [
    'database' => [
        'driver' => 'database',
        'table' => 'cache',
        'connection' => null,
        'lock_connection' => 'lock',
    ],
    'redis' => [
        'driver' => 'redis',
        'connection' => 'cache',
        'lock_connection' => 'lock',
    ],
]

Sync Records With Default Values in Pivot Tables

Daniil Zobov contributed the ability to sync records with default values in pivot tables:

$server = Server::find(1);
$ips = Ip::findMany([1,2,3]);

$server->ips()->syncWithPivotDefaults(
    $ips,
    ['vlan' => 1444]
);

Custom DBAL TimestampType Type

Tom H Anderson and Dries Vints contributed a TimestampType custom mapping type. Check out the release notes below for further details.

Release Notes

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

v8.20.0

Added

Fixed

  • Fixed IlluminateValidationConcernsValidatesAttributes::validateJson() for PHP8 (#35646)
  • Fixed assertCookieExpired() and assertCookieNotExpired() methods in IlluminateTestingTestResponse (#35637)
  • Fixed: Account for a numerical array of views in Mailable::renderForAssertions() (#35662)
  • Catch DecryptException with invalid X-XSRF-TOKEN in IlluminateFoundationHttpMiddlewareVerifyCsrfToken (#35671)

Changed

  • Check configuration in IlluminateFoundationConsoleKernel::scheduleCache() (a253d0e)
  • Modify Model::mergeCasts to return $this (#35683)
  • Clear a cached user in RequestGuard if a request is changed (#35692)

Filed in:
News
/
Laravel 8
/
Releases

Credit: Source link

Previous Next
Close
Test Caption
Test Description goes like this