Releases: laravel/framework
Releases Β· laravel/framework
v12.24.0
- [8.4] Use PHP 8.4 array helpers in Arr utils by @jnoordsij in #56631
- [12.x] Test Improvements by @crynobone in #56635
- [12.x] Update
orchestra/testbench-core
deps by @crynobone in #56637 - refactor: update cid param name by @cpenned in #56634
- [12.x] Cache Singleton/Scoped attribute checks by @cosmastech in #56633
- [12.x] Add
Arr::push()
by @inxilpro in #56632 - [12.x] Add error message for
doesnt_contain
rule by @apih in #56644
v11.45.2
- [11.x] Fix validation to not throw incompatible validation exception by @crynobone in #55963
- [11.x] Fix
symfony/console:7.4
compatibility by @crynobone in #56015 - [11.x] Pass the limiter to the when & report callbacks by @jimmypuckett in #56129
- [11.x] Backport test fixes by @GrahamCampbell in #56183
- Revert "[11.x] Pass the limiter to the when & report callbacks" by @GrahamCampbell in #56184
- [11.x] Correct how base options for missing config files are preloaded by @u01jmg3 in #56216
- [11.x] backport #56235 by @calebdw in #56236
- [11.x] Consistent use of
mb_split()
to split strings into words by @GrahamCampbell in #56617 - [11.x]
CacheSchedulingMutex
should use lock connection by @GrahamCampbell in #56614 - [11.x] Test Improvements by @crynobone in #56630
- [11.x] Update
orchestra/testbench-core
deps by @crynobone in #56636
v12.23.1
Update version to v12.23.1
v12.23.0
- [12.x] Prevent unintended sleep on early failure of assertSequence by @xHeaven in #56583
- [12.x] Redis cluster broadcaster by @vadimonus in #56581
- [12.x] Alias Benchmark class by @jackbayliss in #56594
- [12.x] Add support for drop patterns to the
make:migration
command'sTableGuesser
. by @amirhshokri in #56608 - [12.x] Improve collection return types by @axlon in #56599
- [12.x] Fix collection typo by @axlon in #56597
- Fix return type docblock for resetAttempts method in RateLimiter by @jonagoldman in #56596
- Add 'page' field to paginator links by @compico in #56603
- [12.x] Add support for inline attachments in Resend transport by @jayanratna in #56598
- Fix test failures in PHPUnit 12.3.2 by @KentarouTakeda in #56610
- [12.x] Use new error and exception handler getters by @jnoordsij in #56623
- [12.x] Use PHP 8.4 array helpers by @jnoordsij in #56619
- [12.x] Prefer Symfony PHP polyfills over
function_exists
calls by @jnoordsij in #56621 - [12.x]
Bind
attribute accepts UnitEnum by @cosmastech in #56616 - [12.x] Add Vitess-specific safe to retry errors by @GrahamCampbell in #56615
- [12.x] Handle null as a falsy condition by @negoziator in #56612
- Added "after" support for morphs and nullableMorphs Blueprint by @marcogermani87 in #56613
- [12.x] Fix usage of
Scoped
andSingleton
on interfaces by @cosmastech in #56620 - [12.x] Online (concurrently) index creation for PostgreSQL and SqlServer by @vadimonus in #56625
v12.22.1
- [12.x] Improved assertion message by @AhmedAlaa4611 in #56579
- [12.x] Fixed version increment by @dciancu in #56588
- [12.x] Normalize file path separators in
make:migration
command on Windows by @amirhshokri in #56591 - Revert "[12.x] Improve PHPDoc blocks for array of arguments in Gate" by @taylorotwell in #56593
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