Laravel 10.46.0
1 March 2024
Laravel version 10.46.0 is now available (major release).
What's New in Laravel 10.46.0
10.46.0
- Ensure lazy-loading for trashed morphTo relations works by @nuernbergerA in #50176
- Arr::select not working when $keys is a string by @Sicklou in #50169
- Added passing loaded relationship to value callback by @dkulyk in #50167
- Fix optional charset and collation when creating database by @GrahamCampbell in #50168
- update doc block in PendingProcess.php by @saMahmoudzadeh in #50198
- Fix Accepting nullable Parameters, updated doc block, and null pointer exception handling in batchable trait by @saMahmoudzadeh in #50209
- Make GuardsAttributes fillable property DocBlock more specific by @liamduckett in #50229
- Add only and except methods to Enum validation rule by @Anton5360 in #50226
- Fixes on nesting operations performed while applying scopes. by @Guilhem-DELAITRE in #50207
- Custom RateLimiter increase by @khepin in #50197
- Add Lateral Join to Query Builder by @Bakke in #50050
- Update return type by @AmirRezaM75 in #50252
- Fix dockblock by @michaelnabil230 in #50259
- Add Conditionable in enum rule by @michaelnabil230 in #50257
- Update Facade::$app to nullable by @villfa in #50260
- Truncate sqlite table name with prefix by @kitloong in #50251
- Correction comment for Str::orderedUuid() - https://github.com/laraveā¦ by @wq9578 in #50268
10.45.1
- Fix typehint for ResetPassword::toMailUsing() by @KKSzymanowski in #50163
- Fix Process::fake() never matching multi-line commands by @SjorsO in #50164
10.45.0
- Update Stringable phpdoc by @milwad-dev in #50075
- Allow Collection::select() to work on ArrayAccess by @axlon in #50072
- Add before to the PendingBatch by @xiCO2k in #50058
- Adjust rules call sequence by @driesvints in #50084
- Fixes Illuminate\Support\Str::fromBase64() return type by @SamAsEnd in #50108
- Actually fix fromBase64 return type by @GrahamCampbell in #50113
- Fix warning and deprecation for Str::api by @driesvints in #50114
- Mark model instanse as not exists on deleting MorphPivot relation. by @dkulyk in #50135
- Adds Tappable and Conditionable to Relation class by @DarkGhostHunter in #50124
- Added getQualifiedMorphTypeName to MorphToMany by @dkulyk in #50153
10.44.0
- Fix empty request for HTTP connection exception by @driesvints in #49924
- Add Collection::select() method by @morrislaptop in #49845
- Refactor getPreviousUrlFromSession method in UrlGenerator by @milwad-dev in #49944
- Add POSIX compliant cleanup to artisan serve by @Tofandel in #49943
- Fix infinite loop when global scopes query contains aggregates by @mateusjunges in #49972
- Adds PHPUnit 11 as conflict by @nunomaduro in #49957
- Revert "fix Before/After validation rules" by @taylorotwell in #50013
- Fix the phpdoc for replaceMatches in Str and Stringable helpers by @joke2k in #49990
- Added setAbly() method for AblyBroadcaster by @Rijoanul-Shanto in #49981
- Fix in appendExceptionToException method exception type check by @t1nkl in #49958
- DB command: add sqlcmd -C flag when 'trust_server_certificate' is set by @hulkur in #49952
- Allows Setup and Teardown actions to be reused in alternative TestCase for Laravel by @crynobone in #49973
- Add toBase64() and fromBase64() methods to Stringable and Str classes by @mtownsend5512 in #49984
- Allows to defer resolving pcntl only if it's available by @crynobone in #50024
- Fixes missing Throwable import and handle if originalExceptionHandler or originalDeprecationHandler property isn't used by alternative TestCase by @crynobone in #50021
- Type hinting for conditional validation rules by @lorenzolosa in #50017
- Introduce new Arr::take() helper by @ryangjchandler in #50015
- Improved Handling of Empty Component Slots with HTML Comments or Line Breaks by @comes in #49966
- Introduce Observe attribute for models by @emargareten in #49843
- Add ScopedBy attribute for models by @emargareten in #50034
- Update reserved names in GeneratorCommand by @xurshudyan in #50043
- fix Validator::validated get nullable array by @helitik in #50056
- Pass Herd specific env variables to "artisan serve" by @mpociot in #50069
- Remove regex case insensitivity modifier in UUID detection to speed it up slightly by @maximal in #50067
- HTTP retry method can accept array as first param by @me-shaon in #50064
- Fix DB::afterCommit() broken in tests using DatabaseTransactions by @oprypkhantc in #50068