Releases: laravel/framework
Releases Β· laravel/framework
v12.22.0
- [12.x] removed usage of useless
ReflectionProperty::setAccessible()
by @NickSdot in #56379 - [12.x] Add missing PHPDoc type in
JoinClause
by @FeBe95 in #56378 - [12.x] Make the getTable method public in database failed job providers by @kevinb1989 in #56384
- [12.x] Fix
migrate:fresh
command on SQLite with WAL journal_mode by @crynobone in #56368 - [12.x] Easily run pipelines inside of a transactions with
Pipeline::withinTransaction()
by @cosmastech in #56377 - [12.x] fix: Models having inconsistent guarding behaviour by @JimTools in #56381
- Fix incorrect docblock for custom builder resolvers by @LukeTowers in #56392
- [12.x] Fix typehints for
partition()
by @cosmastech in #56388 - [12.x] Introduce
#[Bind]
attribute by @cosmastech in #56383 - [12.x] Use MissingValue as default to distinguish between omitted and explicit null by @Edvarde in #56394
- Improve job serialization error message with job class name by @alizadeh7091 in #56398
- [12.x] Iterable models assertion by @DarkGhostHunter in #56403
- [12.x] Fix resolving
StreamResponse
callback on Laravel Octane by @crynobone in #56413 - [12.x] Reverts 56310 by @AhmedAlaa4611 in #56408
- [12.x] Clean up redundant type hints in docblocks by @amirhshokri in #56411
- [12.x] Align PHPDoc parameter name with method signature by @AhmedAlaa4611 in #56422
- [12.x] Refine type hinting for condition rules by @michaelnabil230 in #56420
- [12.x] Improve PHPDoc blocks for array of arguments in Gate by @shaedrich in #56426
- Trim whitespace when validating required arguments in console commands by @eslam-dev in #56427
- [12.x] Revert "Trim whitespace when validating required arguments in console commands" by @GrahamCampbell in #56431
- [12.x] Clean up redundant PHPDoc by @AhmedAlaa4611 in #56430
- Revert "[12.x] Clean up redundant PHPDoc" by @taylorotwell in #56432
- [12.x] Clear repository when extending Env by @riasvdv in #56438
- [12.x] Partially reverts 56398 by @AhmedAlaa4611 in #56436
- [12.x] Align PHPDoc parameter with method signature by @AhmedAlaa4611 in #56435
- Add missing parameters to isUrl and isUuid by @brufdev in #56453
- [12.x] Use
getContainer()
to avoid fatal error inPipeline
with transactions by @xurshudyan in #56447 - Improve PHPDoc block parameter typing in Exceptions::dontReportWhen() by @shaedrich in #56439
- [12.x] Enhancement: the beforeCommit method will now work even if using the ShouldQueueAfterCommit contract by @ahmad-cit22 in #56445
- [12.x] Fix typehint for
VerifyEmail::toMailUsing()
by @xurshudyan in #56454 - Add softDeleteResources method in Router by @jrd-lewis in #56440
- [12.x] Add types to the
\Illuminate\Database\Connection
class by @shaedrich in #56459 - Update
queue:work
to handleSIGINT
signal by @ziadoz in #56458 - [12.x] Add
withScopedSingletons
toApplicationBuilder
by @ALameLlama in #56460 - Add NTLM authentication support to Http Client by @cesargb in #56475
- [12.x]: Add 'doesntContain' validation rule by @KIKOmanasijev in #56467
- [12.x] Add
InteractsWithData
trait toComponentAttributeBag
by @KennedyTedesco in #56452 - Add doesntContainStrict() for Collection & LazyCollection by @Rahul-Mac in #56522
- Add actingAsGuest method for clearing actingAs calls by @fritz-c in #56517
- [12.x] Add
Boot
andInitialize
Model attributes by @inxilpro in #56518 - [12.x] Redirect intent in maintenance mode by @gpibarra in #56514
- [12.x] Allow creating additional components when model already exists by @mechelon in #56513
- [12.x] Allow strict integer validation by @zll600 in #56503
- [12.x] Add
to_action
helper method by @laserhybiz in #56496 - Prevent contextual bindings from following stale aliases by @BernieSumption in #56495
- [12.x] Add
except
method to Eloquent Builder by @achyutkneupane in #56442 - Fix incorrect quote escaping in env writer. Closes #56480 by @artengin in #56498
- [12.x] LostConnectionDetector and ConcurrencyErrorDetector by @vadimonus in #56493
- [12.x] CacheSchedulingMutex should use lock connection by @juliusvdijk in #56472
- [12.x] Fix assertion in
testSendToOthersOnly
method by @xurshudyan in #56538 - Fix parameters order in PHPUnit assertion by @nicolus in #56537
- [Docblock] Add return type to defer() helper by @tushar-nain in #56534
- [12.x] Fixes wrong docblock in email rule by @bram-pkg in #56531
- [12.x] Add Arr::some() and Arr::every() by @shaedrich in #56526
- [12.x] - add
dispatchedOnce
methods by @lioneaglesolutions in #56494 - [12.x] Add ability to
prepend()
andappend()
toPendingChain
by @stevebauman in #56536 - [12.x] Reduce repeated inserts in
EloquentCursorPaginateTest
by @cosmastech in #56543 - [12.x] Allow passing command class instances directly to
Schedule::command()
andArtisan::call()
by @amirhshokri in #56530 - [12.x] Feat: ability to explicitly exclude factory relationships by @Lakshan-Madushanka in #56396
- [12.x] - Improved assertion message for
dispatchedTimes
methods by @lioneaglesolutions in #56544 - [12.x] Add ability to deduplicate multiple characters with a single Str::deduplicate call by @WendellAdriel in #56548
- [12.x] Handle Enum::cases() for enum column type by @iamgergo in #56565
- [12.x] Updated the PHPDoc to accurately reflect the behavior by @AhmedAlaa4611 in #56562
- [12.x] Add missing "nil" option to union type for
Str::isUuid()
$version
parameter by @shaedrich in #56557 - [12.x] Add DatabaseStore::setConnection(), fix docblock for setLockConnection() by @stancl in #56554
- Add inspirational quotes from prominent African leaders to Inspiring.php by @AngeArsene in #56551
- [12.x] Deferred Events by @dbpolito in #56556
- [12.x] Pipeline::withinTransaction() accepts connection by @cosmastech in #56550
- [12.x] Adding support for specific events to Event::defer() by @dbpolito in #56566
- [12.x] Make
Pipeline
macroable by @ryangjchandler in #56567 - [12.x] Fixed an issue when calling
hasNested
with a first relationship of typemorphTo
. by @nicDamours in #56512 - Fix return type in Support/Benchmark by @mtlukaszczyk in #56575
v12.21.0
- fix(vite): #55793 add explicit as-script to link tag for script modul⦠by @midsonlajeanty in #55794
- [12.x] Allow globally disabling Factory parent relationships via
Factory::dontExpandRelationshipsByDefault()
by @cosmastech in #56154 - [12.x] Adds checking if a value is between two columns by @DarkGhostHunter in #56119
- [12.x] Ensure database connection is always restored by @xurshudyan in #56258
- [12.x] Fix handling of
Htmlable
objects inJs::convertDataToJavaScriptExpression()
by @jj15asmr in #56253 - Reduce meaningless intermediate variables. by @LjjGit in #56265
- [12.x] Improve typehints for
AbstractCursorPaginator@through()
by @cosmastech in #56267 - Use
Date
facade instead oftime()
forpassword_confirmed_at
check by @dylanbr in #56270 - [12.x] fix: Collection::transform() and Paginator::through() return types by @calebdw in #56273
- [12.x] Merge 11.x into 12.x by @u01jmg3 in #56289
- [12.x] Reduce meaningless intermediate variables by @AhmedAlaa4611 in #56288
- [12.x] Refactor build Method to Use Null Coalescing Assignment for Default C⦠by @Ashot1995 in #56283
- [12.x] minor code formatting improvements by @browner12 in #56296
- [12.x] Use more specific route binding exception message for child routes by @jessekoerhuis in #56298
- [12.x] Fix Possible Undefined Variables by @calfc in #56292
- [12.x] Fix: Ensure scheduler
dailyAt()
method parses minutes and ignores seconds when seconds are provided by @amirhshokri in #56308 - [12.x] Allows for strict boolean validation by @peterfox in #56313
- Improve
SeedCommand
console output by @Jehong-Ahn in #56310 - [12.x] Add unified enum support across framework docs by @amirhshokri in #56271
- [12.x] Allows for strict numeric validation by @peterfox in #56328
- [12.x] Update PHPDoc annotations in
Validation
by @mrvipchien in #56321 - [12.x] Add operator class support for PostgreSQL GiST spatial indexes by @joteejotee in #56324
- Fix multipart array value parsing in HTTP client (#55732) by @joteejotee in #56302
- Fixes bug with ShouldBeUniqueUntilProcessing locks getting stuck due to Middleware by @TWithers in #56318
- [12.x] add prompts based expectations to PendingCommand by @BinaryKitten in #56260
- [12.x] Add Singleton and Scoped attributes to Container by @riasvdv in #56334
- Fix unsetting model castable attribute when cast to object (#56335) by @guram-vashakidze in #56343
- [12.x] Fix/memory improvement by @CharrafiMed in #56345
- [12.x] Add hasMailer method to the mailable class by @kevinb1989 in #56340
- [12.x] Consistent use of
mb_split()
to split strings into words by @shaedrich in #56338 - [12.x] Add toStringable to Uri by @Kyrch in #56359
- [12.x] Fix PHPStan Integrations by @crynobone in #56369
- Add 'isEmpty' and 'isNotEmpty' to Fluent by @cworreschk in #56370
- [12.x] Add mergeMetadata method to the Mailable class by @kevinb1989 in #56376
- Add 'dontReportUsing' to filter exceptions to be reported by @pelmered in #56361
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