Releases: laravel/framework
Releases Β· laravel/framework
v12.20.0
- [12.x] Pass TransportException to NotificationFailed event by @hackel in #56061
- [12.x] use
offset()
in place ofskip()
by @browner12 in #56081 - [12.x] use
limit()
in place oftake()
by @browner12 in #56080 - [12.x] Display job queue names when running queue:work with --verbose option by @seriquynh in #56086
- [12.x] use
offset()
andlimit()
in tests by @browner12 in #56089 - [12.x] Localize βPagination Navigationβ aria-label by @andylolz in #56103
- [12.x] Enhance the test coverage for Pipeline::through() by @azim-kordpour in #56100
- [12.x] Added
JsonSerializable
interface toUri
Class by @devajmeireles in #56097 - [12.x] Display job connection name when running queue:work with --verbose option by @amirhshokri in #56095
- [12.x] Fix PHPDoc for Arr::sole method by @AhmedAlaa4611 in #56096
- [12.x] when a method returns
$this
set the return type tostatic
by @browner12 in #56092 - [12.x] Use
int<0, max>
as docblock return type for database operations that return a count by @cosmastech in #56117 - [12.x] Add missing @throws annotation to Number by @AhmedAlaa4611 in #56116
- [12.x] Correct PHPDoc for Arr::sole callable type to avoid return type ambiguity by @AhmedAlaa4611 in #56108
- Change return types of through (pagination) and transform (collection) by @glamorous in #56105
- [12.x] Add maintenance mode facade for easier driver extension by @ziadoz in #56090
- [12.x] Cache isSoftDeletable(), isPrunable(), and isMassPrunable() directly in model by @shaedrich in #56078
- [12.x] Throws not throw by @AhmedAlaa4611 in #56120
- [12.x] Fix @param docblock to allow string by @AhmedAlaa4611 in #56121
- [11.x] Pass the limiter to the when & report callbacks by @jimmypuckett in #56129
- [12.x] remove the "prefix" option for cache password resets by @browner12 in #56127
- [12.x] Make Model::currentEncrypter public by @JaZo in #56130
- [12.x] Add throws docblock by @amirhshokri in #56137
- [12.x] Narrow integer range for
Collection
methods by @cosmastech in #56135 - [12.x] Allows using
--model
and--except
viaPruneCommand
command by @hosni in #56140 - [12.x] Support Passing
Htmlable
Instances toJs::from()
by @jj15asmr in #56159 - #56124 Properly escape column defaults by @asmecher in #56158
- [12.x] Return early on belongs-to-many relationship
syncWithoutDetaching
method when empty values are given by @stevebauman in #56157 - [12.x] Add fakeFor and fakeExceptFor methods to Queue facade by @MrPunyapal in #56149
- [11.x] Backport test fixes by @GrahamCampbell in #56183
- Revert "[11.x] Pass the limiter to the when & report callbacks" by @GrahamCampbell in #56184
- Add failWhen method to ThrottlesExceptions job middleware by @michaeldzjap in #56180
- [12.x] Update Castable contract to accept string array by @hosmelq in #56177
- Feature: doesntStartWith() and doesntEndWith() string methods by @balboacodes in #56168
- [12.x] Add context remember functions by @btaskew in #56156
- [12.x] Fix queue fake cleanup to always restore original queue manager by @xurshudyan in #56165
- [12.x] Pass the limiter to the when & report callbacks by @GrahamCampbell in #56187
- [12.x] Add
Closure
-support to$key
/$value
in Collectionpluck()
method by @ralphjsmit in #56188 - [12.x] Add
collection()
to Config repository by @KennedyTedesco in #56200 - Add int to allowed types of value in DatabaseRule by @vkarchevskyi in #56199
- [12.x] Fix Event fake cleanup to always restore original event dispatcher by @xurshudyan in #56189
- [12.x] Align PHPDoc style in Number::parseFloat with the rest of the class by @AhmedAlaa4611 in #56206
- [12.x] Inconsistent use of @return type by @AhmedAlaa4611 in #56207
- [12.x] Resolve issue with Factory make when automatic eager loading by @jackbayliss in #56211
- [12.x] Refactor driver initialization using null coalescing assignment in Manager by @Ashot1995 in #56210
- [12.x] Add URL signature macros to
Request
docblock by @duncanmcclean in #56230 - [12.x] Update PHPDoc for dataForSometimesIteration by @mrvipchien in #56229
- [12.x] Avoid unnecessary filtering when no callback is provided by @AhmedAlaa4611 in #56225
- [12.x] Make
Fluent
class iterable by @xurshudyan in #56218 - Improve Mailable assertion error messages with expected vs actual values by @ahinkle in #56221
- [12.x] Add
@βcontext
Blade directive by @martinbean in #56146 - [12.x] fix: AsCommand properties not being set on commands by @calebdw in #56235
- [12.x] Ensure
withLocale
andwithCurrency
always restore previous state by @xurshudyan in #56234
v12.19.3
v12.19.2
Update version to v12.19.2
v12.19.1
- Revert "[12.x] Check if file exists before trying to delete it" by @GrahamCampbell in #56072
v12.19.0
- [11.x] Fix validation to not throw incompatible validation exception by @crynobone in #55963
- [12.x] Correct testEncryptAndDecrypt to properly test new methods by @KIKOmanasijev in #55985
- [12.x] Check if file exists before trying to delete it by @Jellyfrog in #55994
- Clear cast caches when discarding changes by @willtj in #55992
- [12.x] Handle Null Check in Str::contains by @Jellyfrog in #55991
- [12.x] Remove call to deprecated
getDefaultDescription
method by @jnoordsij in #55990 - Bump brace-expansion from 2.0.1 to 2.0.2 in /src/Illuminate/Foundation/resources/exceptions/renderer by @dependabot in #55999
- Enhance error handling in PendingRequest to convert TooManyRedirectsE⦠by @achrafAa in #55998
- [12.x] fix: remove Model intersection from UserProvider contract by @calebdw in #56013
- [12.x] Remove the only @return tag left on a constructor by @JordanchoEftimov in #56001
- [12.x] Introduce
ComputesOnceableHashInterface
by @Jacobs63 in #56009 - [12.x] Add assertRedirectBackWithErrors to TestResponse by @AhmedAlaa4611 in #55987
- [12.x] collapseWithKeys - Prevent exception in base case by @DeanWunder in #56002
- [12.x] Standardize size() behavior and add extended queue metrics support by @sylvesterdamgaard in #56010
- [11.x] Fix
symfony/console:7.4
compatibility by @crynobone in #56015 - [12.x] Improve constructor PHPDoc for controller middleware definition by @JordanchoEftimov in #56021
- Remove
@return
tags from constructors by @michaelnabil230 in #56024 - [12.x] sort helper functions in alphabetic order by @gigabites19 in #56031
- [12.x] add Attachment::fromUploadedFile method by @rodrigopedra in #56027
- [12.x]: Add UseEloquentBuilder attribute to register custom Eloquent Builder by @KIKOmanasijev in #56025
- [12.x] Improve PHPDoc for the Illuminate\Cache folder files by @JordanchoEftimov in #56028
- [12.x] Add a new model cast named asFluent by @azim-kordpour in #56046
- [12.x] Introduce
FailOnException
job middleware by @cosmastech in #56037 - [12.x] isSoftDeletable(), isPrunable(), and isMassPrunable() to model class by @shaedrich in #56060
v12.18.0
- document
through()
method in interfaces to fix IDE warnings by @harryqt in #55925 - [12.x] Add encrypt and decrypt Str helper methods by @KIKOmanasijev in #55931
- [12.x] Add a command option for making batchable jobs by @hafezdivandari in #55929
- [12.x] fix: intersect Authenticatable with Model in UserProvider phpdocs by @calebdw in #54061
- [12.x] feat: create UsePolicy attribute by @calebdw in #55882
- [12.x]
ScheduledTaskFailed
not dispatched on scheduled forground task fails by @achrafAa in #55624 - [12.x] Add generics to
Model::unguarded()
by @axlon in #55932 - [12.x] Fix SSL Certificate and Connection Errors Leaking as Guzzle Exceptions by @achrafAa in #55937
- Fix deprecation warning in PHP 8.3 by ensuring string type in explode() by @Khuthaily in #55939
- revert: #55939 by @NickSdot in #55943
- [12.x] feat: Add WorkerStarting event when worker daemon starts by @Orrison in #55941
- [12.x] Allow setting the
RequestException
truncation limit per request by @cosmastech in #55897 - [12.x] feat: Make custom eloquent castings comparable for more granular isDirty check by @SanderSander in #55945
- [12.x] fix alphabetical order by @AhmedAlaa4611 in #55965
- [12.x] Use native named parameter instead of unused variable by @imanghafoori1 in #55964
- [12.x] add generics to Model attribute related methods and properties by @taka-oyama in #55962
- [12.x] Supports PHPUnit 12.2 by @crynobone in #55961
- [12.x] feat: Add ability to override SendQueuedNotifications job class by @Orrison in #55942
- [12.x] Fix timezone validation test for PHP 8.3+ by @platoindebugmode in #55956
- Broadcasting Utilities by @taylorotwell in #55967
- [12.x] Remove unused $guarded parameter from testChannelNameNormalization method by @AhmedAlaa4611 in #55973
- [12.x] Validate that
outOf
is greater than 0 inLottery
helper by @mrvipchien in #55969 - [12.x] Allow retrieving all reported exceptions from
ExceptionHandlerFake
by @cosmastech in #55972
v12.17.0
- [11.x] Backport
TestResponse::assertRedirectBack
by @GrahamCampbell in #55780 - Add support for sending raw (non-encoded) attachments in Resend mail by @Roywcm in #55837
- [12.x] chore: return Collection from timestamps methods by @calebdw in #55871
- [12.x] fix: fully qualify collection return type by @calebdw in #55873
- [12.x] Fix Blade nested default component resolution for custom namespaces by @daniser in #55874
- [12.x] Fix return types in console command handlers to void by @michaelnabil230 in #55876
- [12.x] Ability to perform higher order static calls on collection items by @daniser in #55880
- Adds Resource helpers to cursor paginator by @jsandfordhughescoop in #55879
- Add reorderDesc() to Query Builder by @ghabriel25 in #55885
- [11.x] Fixes Symfony Console 7.3 deprecations on closure command by @crynobone in #55888
- [12.x] Add
AsUri
model cast by @ash-jc-allen in #55909 - [12.x] feat: Add Contextual Implementation/Interface Binding via PHP8 Attribute by @yitzwillroth in #55904
- [12.x] Add tests for the
AuthenticateSession
Middleware by @imanghafoori1 in #55900 - [12.x] Allow brick/math ^0.13 by @jnoordsij in #54964
- [12.x] fix: Factory::state and ::prependState generics by @calebdw in #55915
v11.45.1
- Add support for sending raw (non-encoded) attachments in Resend mail by @Roywcm in #55837
- [11.x] Fixes Symfony Console 7.3 deprecations on closure command by @crynobone in #55888
v12.16.0
- [12.x] Change priority in optimize:clear by @amirmohammadnajmi in #55792
- [12.x] Fix
TestResponse::assertSessionMissing()
when given an array of keys by @crynobone in #55800 - [12.x] Allowing
Context
Attribute to Interact with Hidden by @devajmeireles in #55799 - Add support for sending raw (non-encoded) attachments in Resend mail driver by @Roywcm in #55803
- [12.x] Added option to always defer for flexible cache by @Zwartpet in #55802
- [12.x] style: Use null coalescing assignment (??=) for cleaner code by @mohsenetm in #55823
- [12.x] Introducing
Arr::hasAll
by @devajmeireles in #55815 - [12.x] Restore lazy loading check by @decadence in #55817
- [12.x] Minor language update by @AhmedAlaa4611 in #55812
- fix(cache/redis): use connectionAwareSerialize in RedisStore::putMany() by @superbiche in #55814
- [12.x] Fix
ResponseFactory
should also acceptnull
callback by @crynobone in #55833 - [12.x] Add template variables to scope by @wietsewarendorff in #55830
- [12.x] Introducing
toUri
to theStringable
Class by @devajmeireles in #55862 - [12.x] Remove remaining @return tags from constructors by @AhmedAlaa4611 in #55858
- [12.x] Replace alias
is_integer()
withis_int()
to comply with Laravel Pint by @xurshudyan in #55851 - Fix argument types for Illuminate/Database/Query/Builder::upsert() by @jellisii in #55849
- [12.x] Add
in_array_keys
validation rule to check for presence of specified array keys by @stevebauman in #55807 - [12.x] Add
Rule::contains
by @stevebauman in #55809
v12.15.0
- [12.x] Add locale-aware number parsing methods to Number class by @informagenie in #55725
- [12.x] Add a default option when retrieving an enum from data by @elbojoloco in #55735
- Revert "[12.x] Update "Number::fileSize" to use correct prefix and add prefix param" by @ziadoz in #55741
- [12.x] Remove apc by @AhmedAlaa4611 in #55745
- [12.x] Add param type for
assertJsonStructure
&assertExactJsonStructure
methods by @milwad-dev in #55743 - [12.x] Fix type casting for environment variables in config files by @adamwhp in #55737
- [12.x] Preserve "previous" model state by @crynobone in #55729
- [12.x] Passthru
getCountForPagination
on an Eloquent\Builder by @cosmastech in #55752 - [12.x] Add
assertClientError
method toTestResponse
by @shane-zeng in #55750 - Install Broadcasting Command Fix for Livewire Starter Kit by @joshcirre in #55774
- Clarify units for benchmark value for IDE accessibility by @mike-healy in #55781
- Improved PHPDoc Return Types for Eloquent's Original Attribute Methods by @clementbirkle in #55779
- [12.x] Prevent
preventsLazyLoading
exception when usingautomaticallyEagerLoadRelationships
by @devajmeireles in #55771 - [12.x] Add
hash
string helper by @istiak-tridip in #55767 - [12.x] Update
assertSessionMissing()
signature to matchassertSessionHas()
by @nexxai in #55763 - Fix: php artisan db command if no password by @mr-chetan in #55761
- [12.x] Types: InteractsWithPivotTable::sync by @liamduckett in #55762
- [12.x] feat: Add
current_page_url
to Paginator by @mariomka in #55789 - Correct return type in PhpDoc for command fail method by @Muetze42 in #55783
- [12.x] Add
assertRedirectToAction
method to test redirection to controller actions by @xurshudyan in #55788 - [12.x] Add Context contextual attribute by @martinbean in #55760