Releases: laravel/framework
Releases Β· laravel/framework
v12.7.1
Update version to v12.7.1
v12.7.0
- [12.x]
AbstractPaginator
should implementCanBeEscapedWhenCastToString
by @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
toArray
toComponentAttributeBag
class 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:seed
command prohibitable by @spawnia in #55238 - [12.x] Introducing
Rules\Password::appliedRules
Method 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:rollback
in 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
Expression
type to param$value
ofQueryBuilder
orHaving()
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
AsHtmlString
cast by @ralphjsmit in #55071 - [12.x] Add
Arr::sole()
method by @ralphjsmit in #55070 - Improve warning message in
ApiInstallCommand
by @sajjadhossainshohag in #55081 - [12.x] use already determined
related
property 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
@return
docblocks 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 Collection
overCollection::make
by @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
whereNull
andwhereNotNull
toAssertablejson
by @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
shouldRun
method to migrations. by @danmatthews in #55011 - [12.x]
Uri
prevent 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
FileViewFinder
doc-blocks by @imanghafoori1 in #55183 - Support using null-safe operator with
null
value by @willrowe in #55175 - [12.x] Fix: Make Paginated Queries Consistent Across Pages by @tomchkk in #55176
- [12.x] Add
pipe
method 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::withoutContext
to remove selected context from future logs by @mattroylloyd in #55181 - [12.x] Add
Expression
type to param$value
ofQueryBuilder
having()
method by @faissaloux in #55200 - [12.x] Add flag to disable where clauses for
withAttributes
method 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-this
by @kayw-geek in #55002 - [12.x] Fix
PendingRequest
typehints forpost
,patch
,put
,delete
by @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
about
command 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
toKilobytes
to handle spaces and case-insensitive units by @alikhosravidev in #55019 - [12.x] Fix mistake in
asJson
call inHasAttributes.php
that 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
aliasedPivotColumns
by @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_format
by @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
$this
for chaining by @browner12 in #55060 - [12.x] prefer
new Collection
overcollect()
by @browner12 in #55059 - [12.x] use "class-string" type for
using
pivot 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
ddBody
method to TestResponse for dumping various response payloads by @Sammyjo20 in #54933 - [11.x] Backport "Fix issue with using
RedisCluster
with compression or serialization" by @rzv-me in #54935 - [12.x] feat: add
CanBeOneOfMany
support toHasOneThrough
by @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
assertOnlyInvalid
by @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
increment
anddecrement
methods toContext
by @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
v11.44.2
- [11.x] Fix double negative in
whereNotMorphedTo()
query by @owenvoke in #54902 - [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
- [11.x] Backport "Fix issue with using
RedisCluster
with compression or serialization" by @rzv-me in #54935 - [11.x] Fix callOnce in Seeder so it handles arrays properly by @lbovit in #54985
v12.1.1
- [11.x] Add valid values to ensure method by @lancepioch in #54840
- Fix attribute name used on
Validator
instance within certain rule classes by @crynobone in #54845 - [11.x] Fix
Application::interBasePath()
fails to resolve application when project name is "vendor" by @crynobone in #54871 - [11.x] Test improvements by @crynobone in #54879
- [12.x] DocBlock: Changed typehint for
Arr::partition
method by @AndrewMast in #54896 - Enhance Email and Image Dimensions Validation Tests by @alikhosravidev in #54897
- [12.x] Apply default styling rules to the notification stub by @ahinkle in #54895