Laravel 11.21.0
21 August 2024
Laravel version 11.21.0 is now available (major release).
What's New in Laravel 11.21.0
11.21.0
Bug Fixes and Changes
- Test Improvements by @crynobone in #52402
- Fix docblock for the event dispatcher by @seriquynh in #52411
- fix: Update text email template by @tranvanhieu01012002 in #52417
- Make expectsChoice assertion more intuitive with associative arrays. by @jessarcher in #52408
- Add resource() method to Illuminate\Http\Client\Response by @einar-hansen in #52412
- fix: prevent casting empty string to array from triggering json error by @calebdw in #52415
- Add ResponseInterface mixin to Illuminate\Http\Client\Response by @einar-hansen in #52410
- Don't touch BelongsTo relationship when it doesn't exist by @patrickomeara in #52407
- Fix Factory::afterCreating callable argument type by @villfa in #52424
- Auto-secure cookies by @fabricecw in #52422
- fix: add missing phpdoc types for Model::$table and Model::$dateFormat by @taka-oyama in #52425
- Add withoutHeaders method by @milwad-dev in #52435
- Checking availability before calling Log::flushSharedContext() method by @ajaxray in #52470
- MessageBag errors out when custom rules are created and the class is left out of the message array by @DanteB918 in #52451
- Create Notification make command markdown name placeholder from Notif… by @hosseinakbari-liefermia in #52465
- Add forceDestroy to SoftDeletes by @jasonmccreary in #52432
- Make SQLiteProcessor cope with '/' in column names by @vroomfondle in #52490
- Improve Cookie Testing Coverage by @saMahmoudzadeh in #52472
- Fix for #52436 artisan schema:dump infinite recursion by @rust17 in #52492
- Run prepareNestedBatches on append/prependToChain & chain by @SabatinoMasala in #52486
- Enhance DB inspection commands by @hafezdivandari in #52501
- Constrain key when asserting database has a model by @patrickomeara in #52464
- Add between to AssertableJson by @rudashi in #52479
- Eager asset prefetching strategies for Vite by @timacdonald in #52462
- Support attributes in app()->call() by @innocenzi in #52428
- Applying value Function into the $default value of transform helper by @devajmeireles in #52510
- Enhanced typing for HigherOrderCollectionProxy by @Voltra in #52484
- Add expectsSearch() assertion for testing prompts that use search() and multisearch() functions by @JayBizzle in #51669
- revert #52510 which added a unneeded function call by @rodrigopedra in #52526
11.20.0
Bug Fixes and Changes
- Update testcase for whereNone method by @einar-hansen in #52351
- Improve Lock->block method by @RedmarBakker in #52349
- Use correct pluralization rules in trans_choice for fallback strings by @stefanvdlugt in #52343
- Replace dead link in Security Policy by @Jubeki in #52338
- Add compatible query type to Model::resolveRouteBindingQuery by @sebj54 in #52339
- Fix Factory::afterCreating callable argument type by @villfa in #52335
- Remove undefined class PreventRequestsDuringMaintenance by @seriquynh in #52322
- Add middleware before sending request and dispatching events by @eduance in #52323
- Add collapseWithKeys to Collection by @jasonmccreary in #52347
- Inverse Fake Queue Interactions: assertNotDeleted, assertNotFailed, and assertNotReleased by @gdebrauwer in #52320
- Add deduplicate to strings by @jasonmccreary in #52350
- feat: make Facade::isFake() public by @calebdw in #52357
- Ask about markdown template for notification command with no initial input by @christophrumpel in #52355
- allow custom view path when making components by @browner12 in #52219
- chore: update to PHPStan Level 1 by @calebdw in #51956
- Support passing default as named parameter in whenLoaded, whenAggregated, whenCounted by @hn-seoai in #51342
- Declare exceptions unreportable using the ShouldntReport interface by @chrispage1 in #52337
- Enable extension of connection inspection methods by @GromNaN in #52231
- Add whenExistsLoaded method to conditionally include relationship existence attribute by @CodeWithKyrian in #52295
- Add in() and inHidden() functions to Context Stacks by @lessevv in #52346
- Use Command::fail() method for single error messages by @seriquynh in #52387
- Rework Context::stackContains with Closures. by @timacdonald in #52381
- Allow enums to be passed to AssertableJson where methods by @patrickomeara in #52360
- Made list validation rule as array for "size rules" in validation messages by @siarheipashkevich in #52385
- Add contextual attributes to resolve drivers by @ziadoz in #52265
- Fix docblocks for where(All|Any|None) query methods by @einar-hansen in #52388
- backport #52204 by @calebdw in #52389
- Fix Http Client Pool requests that have no response by @andrewbroberg in #52393
- Introduce MixFileNotFoundException for handling missing Mix files by @Ex10Dios in #52400
- In MySQL, harvest last insert ID immediately after query is executed by @piurafunk in #52390
11.19.0
Bug Fixes and Changes
- fix @return typehint in Illuminate\Contracts\Process\InvokedProcess::wait method by @mdmahbubhelal in #52304
- Add php doc for ServiceProvider bindings and singletons properties by @Anton5360 in #52298
- backport #52188 by @calebdw in #52293
- Update docblock to accept an Expression for whereLike methods by @patrickomeara in #52299
- Fix Bcrypt/Argon/Argon2I Hashers not checking database field for nullish value before checking hash compatibility by @localpath in #52297
- Method to trim '0' digits after decimal point of a given number by @gdebrauwer in #52284
- Add whereNone method to the query builder by @einar-hansen in #52260
- Fix flat array parameter for relation upsert by @iamgergo in #52289
- assertSeeHtml, assertDontSeeHtml and assertSeeHtmlInOrder testing methods by @gdebrauwer in #52285
- Fully qualify morph columns when using WHERE clauses by @maartenpaauw in #52227
- Fix runPaginationCountQuery not working properly for union queries by @chinleung in #52314
- Add assertExactJsonStructure method by @gdebrauwer in #52311
- Add withoutHeader() test method by @gdebrauwer in #52309
- Widen typehints in base service provider by @devfrey in #52308
- "Model::preventAccessingMissingAttributes()" Causes Exception During Pagination with ResourceCollection by @Katalam in #52305
- Fixes through() relationship by @leobeal in #52318
- Add new success Method to the Docblock of Illuminate\Console\View\Components\Factory by @devajmeireles in #52310
- Fix tests in wrong file by @christophrumpel in #52329