Releases: laravel/framework
Releases Β· laravel/framework
v12.8.0
- [12.x] only check for soft deletes once when mass-pruning by @cosmastech in #55274
- [12.x] Add createMany mass-assignment variants to
HasOneOrManyrelation by @onlime in #55262 - cosmetic: include is_array() case in match construct of getArrayableItems by @epic-64 in #55275
- Add tests for InvokeSerializedClosureCommand by @Amirhf1 in #55281
- [12.x] Temporarily prevents PHPUnit 12.1 by @crynobone in #55297
- [12.x] Test Improvements by @crynobone in #55306
- Bump vite from 5.4.12 to 5.4.17 in /src/Illuminate/Foundation/resources/exceptions/renderer by @dependabot in #55301
- [12.x] Test Improvements by @crynobone in #55307
- [12.x] add generics to array types for Schema Grammars by @taka-oyama in #55314
- [12.x] fix missing nullable for Query/Grammar::compileInsertGetId by @taka-oyama in #55311
- [12.x] Adds
fromJson()to Collection by @DarkGhostHunter in #55310 - [12.x] Fix
illuminate/databaseusage as standalone package by @crynobone in #55309 - Correct array key in InteractsWithInput by @AJenbo in #55287
- [12.x] Fix support for adding custom observable events from traits by @willrowe in #55286
- [12.x] Added Automatic Relation Loading (Eager Loading) Feature by @litvinchuk in #53655
- [12.x] Modify PHPDoc for Collection::chunkWhile functions to support preserving keys by @jsvdvis in #55324
- [12.x] Introduce Rule::anyOf() for Validating Against Multiple Rule Sets by @brianferri in #55191
v12.7.2
Update version to v12.7.2
v12.7.1
Update version to v12.7.1
v12.7.0
- [12.x]
AbstractPaginatorshould implementCanBeEscapedWhenCastToStringby @gdebrauwer in #55256 - [12.x] Add
whereAttachedTo()Eloquent builder method by @bakerkretzmar in #55245 - Make Illuminate\Support\Uri Macroable by @riesjart in #55260
- [12.x] Add resource helper functions to Model/Collections by @TimKunze96 in #55107
- [12.x]: Use char(36) for uuid type on MariaDB < 10.7.0 by @boedah in #55197
- [12.x] Introducing
toArraytoComponentAttributeBagclass by @devajmeireles in #55258
v12.6.0
- [12.x] Dont stop pruning if pruning one model fails by @gdebrauwer in #55237
- [12.x] Update Date Facade Docblocks by @fdalcin in #55235
- Make
db:seedcommand prohibitable by @spawnia in #55238 - [12.x] Introducing
Rules\Password::appliedRulesMethod by @devajmeireles in #55206 - [12.x] Allowing merging model attributes before insert via
Model::fillAndInsert()by @cosmastech in #55038 - [12.x] Fix type hints for DateTimeZone and DateTimeInterface on DateFactory by @AndrewMast in #55243
- [12.x] Fix DateFactory docblock type hints by @AndrewMast in #55244
- List missing
migrate:rollbackin DB::prohibitDestructiveCommands PhpDoc by @spawnia in #55252 - [12.x] Add
Http::requestException()by @cosmastech in #55241 - New: Uri
pathSegments()helper method by @chester-sykes in #55250 - [12.x] Do not require returning a Builder instance from a local scope method by @cosmastech in #55246
v12.5.0
- Correct misspellings by @szepeviktor in #55218
- [12.x] Add ability to flush state on Vite helper by @timacdonald in #55228
- [12.x] Support taggeable store flushed cache events by @erikn69 in #55223
- Revert "[12.x] Support taggeable store flushed cache events" by @taylorotwell in #55232
- [12.x] Allow configuration of retry period for RoundRobin and Failover mail transports by @jnoordsij in #55222
- [12.x] Add --json option to EventListCommand by @hotsaucejake in #55207
v12.4.1
- [12.x] Add
Expressiontype to param$valueofQueryBuilderorHaving()method by @faissaloux in #55202 - [12.x] Fix URL generation with optional parameters (regression in #54811) by @stancl in #55213
- [12.x] Fix failing tests on windows OS by @imanghafoori1 in #55210
v12.4.0
- [12.x] Reset PHPβs peak memory usage when resetting scope for queue worker by @TimWolla in #55069
- [12.x] Add
AsHtmlStringcast by @ralphjsmit in #55071 - [12.x] Add
Arr::sole()method by @ralphjsmit in #55070 - Improve warning message in
ApiInstallCommandby @sajjadhossainshohag in #55081 - [12.x] use already determined
relatedproperty by @browner12 in #55075 - [12.x] use "class-string" where appropriate in relations by @browner12 in #55074
- [12.x]
QueueFake::listenersPushed()by @cosmastech in #55063 - [12.x] Added except() method to Model class for excluding attributes by @vishal2931 in #55072
- [12.x] fix: add TPivotModel default and define pivot property in {Belongs,Morph}ToMany by @calebdw in #55086
- [12.x] remove
@returndocblocks on constructors by @browner12 in #55076 - [12.x] Add NamedScope attribute by @shaedrich in #54450
- [12.x] Improve syntax highlighting for stub type files by @kayw-geek in #55094
- [12.x] Prefer
new CollectionoverCollection::makeby @AhmedAlaa4611 in #55091 - [12.x] Fix except() method to support casted values by @vishal2931 in #55124
- [12.x] Add testcase for findSole method by @mrvipchien in #55115
- [12.x] Types: PasswordBroker::reset by @liamduckett in #55109
- [12.x] assertThrowsNothing by @gdebrauwer in #55100
- [12.x] Fix type nullability on PasswordBroker.events property by @jnoordsij in #55097
- [12.x] Fix return type annotation in decrementPendingJobs method by @shane-zeng in #55133
- [12.x] Fix return type annotation in compile method by @shane-zeng in #55132
- [12.x] feat: Add
whereNullandwhereNotNulltoAssertablejsonby @faissaloux in #55131 - [12.x] fix: use contextual bindings in class dependency resolution by @calebdw in #55090
- Better return types for
Illuminate\Queue\Jobs\Job::getJobId()andIlluminate\Queue\Jobs\DatabaseJob::getJobId()methods by @petrknap in #55138 - Remove remaining @return tags from constructors by @mohammadrasoulasghari in #55136
- [12.x] Various URL generation bugfixes by @stancl in #54811
- Add an optional
shouldRunmethod to migrations. by @danmatthews in #55011 - [12.x]
Uriprevent empty query string by @rojtjo in #55146 - [12.x] Only call the ob_flush function if there is active buffer in eventStream by @tonysm in #55141
- [12.x] Add CacheFlushed Event by @tech-wolf-tw in #55142
- [12.x] Update DateFactory method annotations for Carbon v3 compatibility by @kayw-geek in #55151
- [12.x] Improve docblocks for file related methods of InteractsWithInput by @SanderMuller in #55156
- [12.x] Enhance
FileViewFinderdoc-blocks by @imanghafoori1 in #55183 - Support using null-safe operator with
nullvalue by @willrowe in #55175 - [12.x] Fix: Make Paginated Queries Consistent Across Pages by @tomchkk in #55176
- [12.x] Add
pipemethod query builders by @timacdonald in #55171 - [12.x] fix: one of many subquery constraints by @calebdw in #55168
- [12.x] fix(postgres): missing parentheses in whereDate/whereTime for json columns by @saibotk in #55159
- Fix factory creation through attributes by @davidstoker in #55190
- [12.x] Fix Concurrency::run to preserve callback result order by @chaker2710 in #55161
- [12.x] Log: Add optional keys parameter to
Log::withoutContextto remove selected context from future logs by @mattroylloyd in #55181 - [12.x] Add
Expressiontype to param$valueofQueryBuilderhaving()method by @faissaloux in #55200 - [12.x] Add flag to disable where clauses for
withAttributesmethod on Eloquent Builder by @AndrewMast in #55199
v12.3.0
- [12.x] fixes laravel/octane#1010 by @mihaileu in #55008
- Added the missing 'trashed' event to getObservablesEvents() by @duemti in #55004
- [12.x] Enhance PHPDoc for Manager classes with
@param-closure-thisby @kayw-geek in #55002 - [12.x] Fix
PendingRequesttypehints forpost,patch,put,deleteby @cosmastech in #54998 - [12.x] Add test for untested methods in LazyCollection by @mohammadrasoulasghari in #54996
- [12.x] fix indentation by @browner12 in #54995
- [12.x] apply final Pint fixes by @browner12 in #55014
- Enhance validation tests: Add test for connection name detection in Unique rule by @alikhosravidev in #54993
- [12.x] Add json:unicode cast to support JSON_UNESCAPED_UNICODE encoding by @fuwasegu in #54992
- [12.x] Add βStorage Linkedβ to the
aboutcommand by @adampatterson in #54949 - [12.x] Add support for native JSON/JSONB column types in SQLite Schema builder by @fuwasegu in #54991
- [12.x] Fix
LogManager::configurationFor()typehint by @cosmastech in #55016 - [12.x] Add missing tests for LazyCollection methods by @mohammadrasoulasghari in #55022
- [12.x] Refactor: Structural improvement for clarity by @AhmedAlaa4611 in #55018
- Improve
toKilobytesto handle spaces and case-insensitive units by @alikhosravidev in #55019 - [12.x] Fix mistake in
asJsoncall inHasAttributes.phpthat was recently introduced by @AndrewMast in #55017 - [12.x] reapply Pint style changes by @browner12 in #55015
- Add validation test for forEach with null and empty array values by @alikhosravidev in #55047
- [12.x] Types: EnumeratesValues Sum by @liamduckett in #55044
- [12.x] Ensure Consistent Formatting in Generated Invokable Classes by @AhmedAlaa4611 in #55034
- Add element type to return array in Filesystem by @AJenbo in #55031
- [12.x] Add support for PostgreSQL "unique nulls not distinct" by @thierry2015 in #55025
- [12.x] standardize multiline ternaries by @browner12 in #55056
- [12.x] improved readability for
aliasedPivotColumnsby @browner12 in #55055 - [12.x] remove progress bar from PHPStan output by @browner12 in #55054
- [12.x] Fixes how the fluent Date rule builder handles
date_formatby @AndrewMast in #55052 - Adding SSL encryption and support for MySQL connection by @mdiktushar in #55048
- Revert "Adding SSL encryption and support for MySQL connection" by @taylorotwell in #55057
- Ensure queue property is nullable by @timacdonald in #55058
- [12.x] return
$thisfor chaining by @browner12 in #55060 - [12.x] prefer
new Collectionovercollect()by @browner12 in #55059 - [12.x] use "class-string" type for
usingpivot model by @browner12 in #55053 - [12.x] multiline chaining on Collections by @browner12 in #55061
v12.2.0
- Add dates to allowed PHPDoc types of Builder::having() by @miken32 in #54899
- [11.x] Fix double negative in
whereNotMorphedTo()query by @owenvoke in #54902 - Add test for Arr::partition by @liamduckett in #54913
- [11.x] Expose process checkTimeout method by @mattmcdev in #54912
- [12.x] Compilable for Validation Contract by @peterfox in #54882
- [11.x] Backport "Change
paginate()method return types to\Illuminate\Pagination\LengthAwarePaginator" by @carestad in #54917 - [11.x] Revert faulty change to
EnumeratesValues::ensure()doc block by @axlon in #54919 - Ensure ValidationEmailRuleTest skips tests requiring the intl extension when unavailable by @alikhosravidev in #54918
- β Ensure Enum validation is case-sensitive by adding a new test case. by @alikhosravidev in #54922
- [12.x] Feature: Collection chunk without preserving keys by @liamduckett in #54916
- [12.x] Add test coverage for Uri::withQueryIfMissing method by @mohammadrasoulasghari in #54923
- Fix issue with using RedisCluster with compression or serialization by @rzv-me in #54934
- [12.x] Add test coverage for Str::replaceMatches method by @mohammadrasoulasghari in #54930
- [12.x] Types: Collection chunk without preserving keys by @liamduckett in #54924
- [12.x] Add
ddBodymethod to TestResponse for dumping various response payloads by @Sammyjo20 in #54933 - [11.x] Backport "Fix issue with using
RedisClusterwith compression or serialization" by @rzv-me in #54935 - [12.x] feat: add
CanBeOneOfManysupport toHasOneThroughby @calebdw in #54759 - [12.x] Hotfix - Add function_exists check to ddBody in TestResponse by @Sammyjo20 in #54937
- [12.x] Refactor: Remove unnecessary variables in Str class methods by @mohammadrasoulasghari in #54963
- Add Tests for Str::pluralPascal Method by @mohammadrasoulasghari in #54957
- [12.x] Fix visibility of setUp and tearDown in tests by @naopusyu in #54950
- [12.x] Test Improvements by @crynobone in #54944
- Fix missing return in
assertOnlyInvalidby @parth391 in #54941 - Handle case when migrate:install command is called and table exists by @joe-tito in #54938
- [11.x] Fix callOnce in Seeder so it handles arrays properly by @lbovit in #54985
- Change "exceptoin" spelling mistake to "exception" by @hvlucas in #54979
- [12.x] Add test for after method in LazyCollection by @mohammadrasoulasghari in #54978
- [12.x] Add
incrementanddecrementmethods toContextby @mattmcdev in #54976 - Ensure ExcludeIf correctly rejects a null value as an invalid condition by @alikhosravidev in #54973
- [12.x] apply Pint rule "no_spaces_around_offset" by @browner12 in #54970
- [12.x] apply Pint rule "single_line_comment_style" by @browner12 in #54969
- [12.x] do not use mix of newline and inline formatting by @browner12 in #54967
- [12.x] use single indent for multiline ternaries by @browner12 in #54971