Releases: laravel/framework
Releases · laravel/framework
v5.4.25
Added
- Added
Macroabletrait toFactoryBuilder(#19425) - Allow a plain text alternative view when using markdown within Mailables (#19436, ad2eaf7)
- Added nested transactions support for SqlServer (#19439)
Changed
- Moved
env()helper to Support component (#19409) - Prevent
BadMethodCallExceptioninRedirectResponse::withErrors()(#19426) - Suppress error if calling
Str::replaceFirst()with an empty search (#19427) - Removed the
callabletype hint forarray_sort()(#19483) - Return the used traits from
TestCase::setUpTraits()(#19486)
Fixed
- Fixes and optimizations for
Str::after()(#19428) - Fixed queue size when using Beanstalkd driver (#19465)
- Check if a mutex can be created before running the callback task in
CallbackEvent::run()(#19466) - Flip expected and actual value on
TestResponse::assertCookie()(#19495) - Fixed undefined variable error in
Mailableclass (#19504) - Prevent error notice when
database.collationis not set (#19507)
v5.4.24
Added
- Support magic controller methods (#19168)
- Added
Gateresources (#19124) - Added
Request::routeIs()method (#19202, 26681eb) - Route
Route::isName()shorthand method (#19227) - Added support for custom columns in
softDeletes()method (#19203) - Added
ManagesLayouts::getSection()method (#19213) - Added
Model::refresh()shorthand (#19174) - Added
Container::forgetExtenders()method (#19269, 7c17bf5) - Added
Filesystem::hash()method (#19256) - Added
TestResponse::assertViewIs()method (#19291) - Added
pathtoPaginator(#19314) - Added
Collection::concat()method (#19318, 0f5337f) - Added
make()method toHasOneOrManyandMorphOneOrManyrelations (#19307) - Added
str_after()helper function (#19357) - Added
Router::apiResource()method (#19347)
Changed
- Move
$sizeRulesand$numericRulesproperties fromFormatsMessagestoValidator(dc7e7cb) - Allows calls to
Collection::times()without the$callbackparameter (#19278) - Don't ignore jobs with a timeout of
0(#19266) - Resolve database paginators from the container (#19328)
- Added
newstoPluralizer::$uncountable()(#19353) - Switched to using
app()->getLocale()inapp.stub(#19405)
Fixed
- Fixed
Container::makeWith()not using parameters when resolving interfaces (#19178) - Stop validating Memcached connection (#19192)
- Fixed the position of
bound()inContainer::instance()(#19207) - Prevent applying global scopes on the factory while setting the connection (#19258)
- Fixed database connection issue in queue worker (#19263)
- Don't use HTML comments in notification email template (#19289)
- Fire rebinding callback when using
bind()method to bind abstract (#19288) - Return
0fromcallScope()if$query->wheresisnull(#19381)
v5.4.23
Added
- Added
Gate::abilities()accessor (#19143, e9e34b5) - Added ability to eager load counts via
$withCountproperty (#19154)
Fixed
- Fixed inversion of expected and actual on assertHeader (#19110)
- Fixed filesystem bug in
Filesystem::files()method on Windows (#19157) - Fixed bug in
Container::build()(#19161, bf669e1)
Removed
- Removed
window.Laravelobject (#19135)
v5.4.22
Added
- Support dynamic number of keys in
MessageBag::hasAny()(#19002) - Added
Seeder::callSilent()method (#19007) - Add
make()method to Eloquent query builder (#19015) - Support
Arrayableon Eloquent'sfind()method (#19019) - Added
SendsPasswordResetEmails::validateEmail()method (#19042) - Allow factory attributes to be factory instances themselves (#19055)
- Implemented
until()method onEventFake(#19062) - Added
$encodingparameter toStr::length()(#19047, #19079)
Changed
- Throw exception when invalid first argument is passed to
cache()helper (d9459b2) - Use
getAuthIdentifierName()inAuthenticatable::getAuthIdentifier()(#19038) - Clone queries without order by for aggregates (#19064)
- Force host on password reset notification (cef1055)
Fixed
- Set data key when testing file uploads in nested array (#18954)
- Fixed a bug related to sub select queries and extra select statements (#19013)
- Resolve aliases from container when using parameters (#19071)
- Stop worker if database disconnect occurred (#19080, 583b1b8)
- Fixed internal call to
assertJson()inassertJsonStructure()(#19090)
v5.4.21
v5.4.20
Added
- Added higher order tap (3abc4fb)
- Added
Collection::mapToGroups()(#18949) - Added
FactoryBuilder::lazy()method (#18823) - Support Redis Sentinel configuration (#18850)
- Added
queue.prefixoption (#18860, 8510bf9) - Allow
getDisplayableAttribute()to be used in custom replacers (#18895) - Added
resourceMethodsWithoutModels()method toAuthorizesRequests(#18916, #18964) - Added name to
homeroute (#18942)
Changed
- Return
PendingDispatchforKernel::queue()(51647eb) - Made
RedisManager::resolve()public (#18830, eb9b99d) - Changed email body color to match wrapper color (#18824)
- Break and hyphenate long words in emails (#18827)
- Force database migration to use the write PDO (#18898)
- Support
JSON_PARTIAL_OUTPUT_ON_ERRORonJsonResponse(#18917, db5f011)
Fixed
- Set connection on model factory (#18846, 95a0663)
- Fixed route parameter binding for routes with leading slashes (#18855)
- Don't call
cleanParameterBag()twice during JSON request (#18840) - Prevent exception in
getActualClassNameForMorph()when morph map isnull(#18921) - Use protocol-relative URL in
mix()helper (#18943) - Cast
$viaChannelsto array (#18960)
v5.4.19
Added
- Added ability to send
link_namesparameter in Slack notification (#18765) - Added
Mailable::hasFrom()method (#18790)
Changed
- Made
Mailermacroable (#18763) - Made
SessionGuardmacroable (#18796) - Improved queue worker output (#18773)
- Added
newModelInstance()method to Eloquent Builder (#18775) - Use assertions instead of exceptions in
MocksApplicationServices(#18774)
Fixed
v5.4.18
Added
- Added
assertSuccessful()andassertRedirect()toTestResponse(#18629) - Added
assertSeeText()andassertDontSeeText()toTestResponse(#18690) - Added
assertJsonMissing()toTestResponse(#18721, 786b782) - Added support for attaching an image to Slack attachments
$attachment->image($url)(#18664) - Added
Validator::extendDependent()to allow adding custom rules that depend on other fields (#18654) - Added support for
--parentoption onmake:controller(#18606) - Added
MessageSentevent toMailer(#18744, 6c5f3a4)
Changed
- Don't trim leading slashes on local filesystem base URLs (acd66fe)
- Accept variable on
@empty()directive (#18738) - Added
stringvalidation rules toAuthenticatesUsers(#18746)
Fixed
v5.4.17
Added
- Added
getManager()andsetManager()to queue worker (#18452) - Added support for Pheanstalk's
$timeoutand$persistentoptions (#18448) - Added
Collection::times()method (#18457) - Added PostgreSQL's
REALdata type (#18513) - Added
flatMapto collection higher order proxies (#18529) - Support multiple
--pathparameters withmigrate:reset(#18540) - Store SparkPost
Transmission-IDin the header after sending message (#18594)
Changed
- Check for
Htmlableinstead ofHtmlStringinMailer::renderView()(#18459, da7b006) - Added mutex for schedule events (#18295, ae2eb1f)
- Don't use helper functions in service providers (#18506, #18521)
- Change
user_idto unsigned integer in database session stub (#18557) - Improved performance of
UrlGenerator::isValidUrl()(#18566)
Fixed
- Handle missing or malformed
config/app.phpfile (#18466, 92931cf) - Only call
upanddownon migration if the method exists (d27d94e) - Fixed overwriting of routes with identical path and method (#18475, 5aee967)
- Fixing model/route binding with identical name (#18476)
- Allow
rollbackMigrations()path to be with string (#18535) - Use
getStatusCode()inTestResponse::assertRedirect()(#18559) - Case
parseIds()to array inInteractsWithPivotTable::sync()(#18547) - Preserve route parameter names (#18604)