shlogg · Early preview
Paul Redmond @paulredmond

Laravel 11.38 Released With New Features And Updates

Laravel v11.38 released with fluent Email validation, array() method for FormRequest and Fluent, finally method for pipeline helper, and more.

This week, the Laravel team released v11.38, which includes a fluent Email validation rule, the ability to retrieve a form request or fluent value as an array, a finally() pipeline method, and more.
#Fluent Email Validation Rule
Sander Muller contributed a fluent Email rule to "provide a similar experience as the Password and File validation rules."
// Before$request->validate([  'email' => ['required', 'string', 'email', 'strict', 'dns'],]); // After$request->validate([  'email' => ['required', 'string', Rule::email()->strict()->dns()],]);
See Pull Request #54067 for details.
#Add array() Met...