The Array Cache Driver Now Supports Locking in Laravel 6.3
Published on by Paul Redmond
The Laravel team released v6.3.0 this week with locking added to the array cache driver among a few new quality of life additions and fixes.
If your tests depend on cache locking, you can now use the array driver in tests, which simplifies testing setup in those scenarios. A big thanks to Tim MacDonald for contributing the array cache locking, which is a huge win for testing locks! Check out Pull Request #30253 for more details.
Next, the framework’s ResetsPasswords
trait has a new setUserPassword()
method that you can override on password reset.
Next, the MorphPivot
relationship now fires the deleting
and deleted
events.
You can see the full list of new features and updates below, and the whole diff between 6.2.0 and 6.3.0 on GitHub. The full release notes for Laravel 6.0 are available in the GitHub v6 changelog:
v6.3.0
Added
- Added ability to override
setUserPassword
on password reset (#30218) - Added firing
deleting
\deleted
events inMorphPivot
(#30229) - Added locking mechanism for the array cache driver (#30253)
- Added
dropAllViews
functionality to the SQL Server builder (#30222)
Optimization
- Optimize eager loading memory handling (#30248)
Fixed
- Fixed extra
?
for empty query string inRouteUrlGenerator::getRouteQueryString()
(#30280)