laravel 2 years ago
php-based framework #Web Development

What's New in Laravel v8.78

The Laravel team released 8.78 with the ability to add custom rules to default password validation rules, a mergeIfMissing() request method, asserting batch counts in tests, and the latest changes in the v8.x branch.

Define Extra Default Password Validation Rules

Ash Allen contributed the ability to define custom validation rules that will run as part of default password rules using the rules() method:

Code
<p>Password::defaults(function () {</p><p>&nbsp; &nbsp; return Password::min(8)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; -&gt;symbols()</p><p>&nbsp; &nbsp; &nbsp; &nbsp; -&gt;mixedCase()</p><p>&nbsp; &nbsp; &nbsp; &nbsp; -&gt;uncompromised()</p><p>&nbsp; &nbsp; &nbsp; &nbsp; -&gt;rules(new ZxcvbnRule());</p><p>});</p>

The rules() method accepts a single rule, an array of rules, or a closure for a closure validation rule.


00:00 - Intro

00:18 - Lazy Loading Eloquent Results

01:32 - Adding Full-text Indexes

02:09 - Hiding Columns in "select *" Statements

02:37 - New allowIf() & denyIf() Gate Methods

03:16 - Retrieve Request Input as Carbon Instances

03:37 - Artisan Command to Clear Cached Mutex

04:34 - New Approach for Adding Accessors & Mutators

07:43 - Forge's New Look

Laravel
by taylor otwell