Skip to content

Latest commit

 

History

History
517 lines (382 loc) · 40.8 KB

CHANGELOG-5.7.md

File metadata and controls

517 lines (382 loc) · 40.8 KB

Release Notes for 5.7.x

Added

  • Add support for Pheanstalk 4.x (#27622)
  • Allow configuration of token guard keys (#27585)

Changed

  • Update vue preset to exclude @babel/preset-react (#27645)
  • Reflash the session for the broadcasting auth call (#27647)
  • Improving readability in AuthenticateWithBasicAuth Middleware (#27661)
  • Use safe container getter on Pipeline (#27648)

Fixed

  • Fixed Postgres grammar when using union queries (#27589)
  • Fixed an issue when using Mail::queue to queue Mailables (#27618)
  • Fixed error in Foundation\Exceptions\Handler (#27632)

Added

  • Added Illuminate\Pipeline\Pipeline::thenReturn() (#27429)
  • Added Illuminate\Cache\TaggedCache::getTags() (#27445)
  • Added Illuminate\Http\ResponseTrait::getCallback() (#27464)
  • Added license file to each component (9e57e8b)
  • Added Model::withoutEvents() method (#27419, 5c5d6b2)

Reverted

  • Revert of "Fixed wrong class being used when eager loading nullable MorphTo with withDefault() (#27411)"(9bbf644)

Changed

  • Improved error message in Illuminate\Foundation\Testing\TestResponse::assertJsonValidationErrors() (#27495, 98010da)
  • Illuminate\Support\Testing\Fakes\EventFake::dispatch() will return response (#27430)

Added

  • Allowed specifying custom translation for date relative messages (#27341)
  • Add computed support to SQL Server schema grammar (#27346, 1c74d7f)
  • Allowed ENV to control paths of cache files for services, packages and routes (#27389)

Fixed

  • Fixed BelongsToMany pivot relationship child with loaded relations wakeup (#27358)
  • Fixed wrong class being used when eager loading nullable MorphTo with withDefault() (#27411)

Changed

  • Removed php_network_getaddresses: getaddrinfo failed: Name or service not known in DetectsLostConnections trait (#27418)

Fixed

Added

  • Added AbstractPaginator::getOptions() method (#27273)
  • Added Communication link failure to DetectsLostConnections trait (#27307)
  • Added orWhere() proxy for scopes to EloquentBuilder (#27281, 2e6fe85)
  • Allow the app path to be configured (#27332, d73e672)
  • Added config for using WhatFailureGroupHandler when StackDriver created for Logger (#27308 ,6a92651)

Fixed

  • Fixed QueueableCollection serialization of Eloquent Models when using Binary IDs (#27271)
  • Replaced newModelQuery() with newQueryWithoutRelationships() for UPDATE/DELETE queries (#27277)

Changed

  • Apply parameters to entire localization array (#27254)
  • Added line about expiring password reset in notification email (#27324, 80c5aec)
  • "Go Home" link will redirect to the home route on exception page (#27343)

Fixed

  • Fixed TestResponse::assertJsonValidationErrors() when there are no errors (#27190)

Changed

  • Allowed TestResponse::assertJsonMissingValidationErrors() to be called without an argument (#27176)
  • Updated vue preset's vue-stubs for laravel-mix 4 compatibility (#27229)
  • Updated preset to use @babel/preset-react (#27235)
  • Used config to resolve the database value during tests. (#27240)

Fixed

  • Fixed Blueprint::removeColumn() (#27115, #27122)
  • Fixed allowing of null broadcast connection driver (#27135)
  • Fixed ModelMakeCommand::handle() should always return bool value (#27156)
  • Fixed TestResponse::assertSessionDoesntHaveErrors() when there are no errors (#27145)
  • Fixed default message is localization twice in 403.blade.php error page (4a08120)

Changed

  • Replaced get_called_class() to static::class (#27146)
  • Re-throw NoMatchingExpectationException from PendingCommand (#27158)

Added

  • Added chunkById support in relations (#26919)
  • Added Collection::whereNotBetween method (#27028)
  • Allowed predefined log channels to change formatter from config (#26895)
  • Allowed storage assertions (FilesystemAdapter::assertExists / FilesystemAdapter::assertMissing) to handle multiple files at once (#26975)
  • Added Adaptive Server connection failed to DetectsLostConnections trait (#27055)
  • Added Route::originalParameters() (#27056)
  • Added QueueFake::pushedJobs() (#27089, 695ffa1)

Fixed

  • Prevents unnecessary queries when lazy loading empty relationships (#26992)
  • Fixed broken Command::setHidden method (#27005)
  • Fixed Str::slug method (#27002)
  • Ignore --seed option for artisan migrate --pretend (#27015)
  • Fixed previousUrl in the session if the call is prefetch (#27017)
  • Fixed nullable MorphTo touching (#27031)
  • Fixed Collection::loadMissing() with duplicate relation names (#27040)
  • Fixed some commands (#27020)
  • Ensured the command context is forwarded to calls (#27012, #27065)
  • Fixed Collection::loadMorph() issue relations loading issue (#27081)

Changed

  • Removed HasOneOrMany::update() since Builder::update() already adds the UPDATED_AT timestamp. (#27026)
  • Changed Name or service not known to php_network_getaddresses: getaddrinfo failed: Name or service not known in DetectsLostConnections trait (#27054, 5459ac1)
  • Changed Eloquent ApiResource merge() methods to accept JsonResource object (#27068)
  • Stop email re-verification with same link (#27070)

Added

  • Added Illuminate\Support\Collection::whereBetween method (#26888)

Fixed

  • Reverted changes related to app()->call() (fefaf46)
  • Reset doctrineConnection property on Database/Connection when reconnecting (#26890)

Added

  • Added missing starts_with validation message (#26822)
  • Added Facade::resolved() method to register pending callback until the service is available. (#26824)
  • Added env var APP_CONFIG_CACHE to control cache config path (578bc83)

Changed

  • Changed TransportManager::createMailDriver (#26846)

Fixed

Added

  • Added Database\Query\Builder::insertUsing method (#26732, 8216b46)
  • Added Database\Query\Builder::havingBetween method (#26758)
  • Added Packets out of order. Expected string to DetectsLostConnections trait (#26760)
  • Added NOT VALID option for skipping validation when adding postgres foreign keys (#26775)

Fixed

  • Fixed: Using store on an uploaded file when you push an empty file (#26809)
  • Fixed hiding for hidden commands (#26781)

Added

  • Added localization for 403.blade.php and 503.blade.php (#26751)
  • Changing the Migrator to accept not only migration directory paths, but migration file paths too (#26642, c4b13bf)

Fixed

  • Fixed self-referencing HasManyThrough existence queries (#26662)
  • Fixed HasManyThrough existence queries with same parent and through parent table (#26676)
  • Fixed breaking eager loading with "incrementing" string keys (#26688)
  • Remove the Register <li> when the route doesn't exist in app.stub (#26708)
  • Fixed Collection::some method (#26696)
  • Revert breaking change in TestResponse::decodeResponseJson method (#26713)
  • Fixed PhpRedisConnection::mget (#26716)
  • Fixed Eloquent\Collection::loadCount attribute syncing (#26714)
  • Fixed Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase::seed for array accepting (#26734)
  • Fixed FormRequest validation triggering twice (#26731)

Changed

  • Changed markdown on auth stub view (Auth/Console/stubs/make/views/auth/login.stub) (#26648)
  • Moved Slack and Nexmo notification channels to the own packages laravel/nexmo-notification-channel, laravel/slack-notification-channel (#26689, #26727)

Deprecated

  • $cachedSchema property in UrlGenerator is deprecated. Will be renamed to the $cachedScheme in 5.8 (#26640)

Added

  • Added date_equals validation message (#26584)
  • Added starts_with validation rule (#26612)
  • Added relationship getters BelongsToMany::getParentKeyName, BelongsToMany::getRelatedKeyName, HasManyThrough::getFirstKeyName, HasManyThrough::getForeignKeyName, HasManyThrough::getSecondLocalKeyName, HasOneOrMany::getLocalKeyName, MorphToMany::getInverse (#26607)
  • Make ResourceCollection countable (#26595)

Fixed

  • Fixed duplicate validation issue in FormRequest::validated method (#26604)
  • Prevent breaking eager loading with string keys (#26622)

Added

  • Added Macroable trait to Illuminate\Cookie\CookieJar (#26445)
  • Added ability to disable password reset route (#26459)
  • Added ability to publish error views (#26460)
  • Added ability to set notifcation tries and timeout (#26493)
  • Added mail.log_channel config for make log for mail driver configurable (#26510)
  • Allowed asset root urls to be configurable via app.asset_url (9172a67)
  • Added Error while sending QUERY packet string to DetectsLostConnections trait (#26233)
  • Added env override for running in console (a36906a, 19f2245)

Fixed

  • Fixed UNION aggregate queries with columns (#26466)
  • Allowed migration table name to be guessed without _table suffix (#26429)
  • Fixed TestResponse::assertExactJson for empty JSON objects (#26353, e6ebc8d, 621d91d, #26508)
  • Fixed cache repository for PHP from 7.2.12v (#26495)
  • Fixed user authorization check for Email Verification (#26528)
  • Fixed nested JOINs on SQLite (#26567)

Changed

  • Improved eager loading performance (#26434, #26453, 3992140, #26471, a3738cf, #26531)
  • Adjusted mix missing asset exceptions (#26431)
  • Used asset helper to generate full path urls in exception views (#26411)
  • Changed Illuminate\Foundation\Testing\Concerns\MocksApplicationServices::withoutJobs method (#26437)
  • Cached distinct validation rule data (#26509)
  • Improved DNS Prefetching in view files (#26552)

Added

  • Added ability to return an array of messages in a custom validation rule (#26327)
  • Added whenEmpty/ whenNotEmpty / unlessEmpty / unlessNotEmpty methods to Collection (#26345)
  • Added Illuminate\Support\Collection::some method (#26376, 8f7e647)
  • Added Illuminate\Cache\Repository::missing method (#26351)
  • Added Macroable trait to Illuminate\View\Factory (#26361)
  • Added support for UNION aggregate queries (#26365)

Changed

  • Updated AbstractPaginator::appends to handle null (#26326)
  • Added "guzzlehttp/guzzle": "^6.3", to composer.json (#26328)
  • Showed exception message on 403 error page when message is available (#26356)
  • Don't run TransformsRequest twice on ?query= parameters (#26366)
  • Added missing logging options to slack log driver (#26360)
  • Use cascade when truncating table in PostgreSQL (#26389)
  • Allowed pass absolute parameter in has valid signature request macro (#26397)

Changed realization

  • Used Request::validate macro in Auth traits (#26314)

Added

  • Added CacheManager::forgetDriver method (#26264, fd9ef49)
  • Added Illuminate\Foundation\Http\Kernel::getMiddlewareGroups method (#26268)
  • Added an sqlite config option (foreign_key_constraints) to enable / disable foreign key constraints (#26298, 674f8be, #26306)

Fixed

  • Checked $absolute parameter in UrlGenerator::signedRoute (#26265)
  • Fixed error in resource building after running php artisan preset none command (41becda, #26244)
  • Fixed whereDoesntHave() and doesntHave() with nested relationships (#26228)
  • Fixed filesystem locking hangs in PackageManifest::build() (#26254)

Changed

  • Made expectation closure optional for InteractsWithContainer::mock and InteractsWithContainer::spy (#26242)
  • Allowed multiple createPayloadCallback on queues (#26250, 6e3d568)
  • Changed wording on default 403 view (#26258)
  • Bump vue.js to ^2.5.17 in artisan preset vue command (89f56bf, #26244)
  • Allowed adding additional $manyMethods when extending the model class (#26307)

Added

  • Added decimal:<num> cast to Model (#26173)
  • Allowed updateExistingPivot to receive an arrayable item (#26167)
  • Added setIntendedUrl method to Routing/Redirector.php (#26227)
  • Added ORA-03114 string to DetectsLostConnections trait (#26233)

Fixed

  • Fixed an issue where the worker process would not be killed by the listener when the timeout is exceeded (#25981)

Changed

  • Reverted filesystem changes which were done in #26010 (#26231)

Added

  • Added loadCount method to eloquent collections (#25997)
  • Added support for identity columns in PostgreSQL 10+ (#26096)
  • Allowed passing a model instance directly to assertSoftDeleted method in Foundation/Testing/Concerns/InteractsWithDatabase.php (#26133 , #26148)
  • Added possibility to define exclude methods on registered apiResource (#26149)
  • Added filp/whoops to suggest in composer.json (#26180)
  • Added mock and spy methods to Foundation/Testing/Concerns/InteractsWithContainer.php (#26171, b50f9f3)
  • Added uuid validation rule to validator (#26135)
  • NotificationFake can assert preferred locale (#26205)

Fixed

  • Fixed whereHas and $withCount bindings from polymorphic relationships (#26145)
  • Fixed getTable method in Model (#26085)
  • Fixed filesystem locking hangs in PackageManifest::build() (#26010, 98b8256)
  • Fixed Illuminate/Http/Testing/File.php for Symfony 4.1 components (#26080)
  • Fixed URL in Notifications/resources/views/email.blade.php (22ca105)
  • Fixed hasValidSignature method when someone send a null signature in UrlGenerator.php (#26132)
  • Fixed autocomplete for container in ServiceProvider for cases when someone developed packages (#26063)
  • Fixed ColumnDefinition::default typehint (#26041)

Changed

  • Define mix as const in react-stubs/webpack.mix.js and vue-stubs/webpack.mix.js presets (#26119)
  • Make assertSessionHasNoErrors in TestResponse.php print the unexpected errors (#26039, e6bdf8a)
  • Replaced the remaining occurrences of newQuery() to newModelQuery() in UPDATE/DELETE queries. (#26158)
  • Improved findOrFail() exceptions in BelongsToMany.php and HasManyThrough.php relations (#26182)

Changed realization

  • Reversed ternary condition in Arr::wrap to make it clearer (#26150)
  • Simplified formatAction in UrlGenerator.php (#26121)
  • Simplified isChainOfObjects method in Support/Testing/Fakes/QueueFake.php (#26151)
  • Deleted unneeded code (#26053, #26162, #26160, #26159, #26152)
  • Prefer stricter comparison (#26139, #26157)
  • Removed duplicated code from Router::updateGroupStack method (#26206, 6debff6)

Added

  • Support custom user provider names in generator commands (#25681)
  • Added 401 Exception view (#26002)
  • Added Categorical imperative quote to Inspiring.php (#25968)
  • Mailable render method respects Mailable@locale property (#25990)
  • Added some meta data to the notification mails (477273c)
  • Added Macroable trait to PendingResourceRegistration (#25947)
  • Added assertSessionDoesntHaveErrors method to TestResponse.php (#25949, 3005706)
  • Enable passing options to custom presets (#25930)

Fixed

  • Fix missing illuminate/support dependency in illuminate/container (#25955)
  • Extend grammar (#25944)

Changed

  • Improved PSR-11 implementation (#25870)
  • Changed the sentence of error 403 view from unauthorised to forbidden (#26002)
  • Revert email lang template changes (#25963)
  • Added model checking in assertViewHas (#26012)

Changed realization

  • Inline Arr::pluck() in data_get() (#25938)

Added

  • Add --step to migrate:fresh command (#25897)
  • Allow destroy method in Model to accept a collection of ids (#25878)
  • Add AsPivot trait (#25851)

Fixed

  • Fixed wrap table for sql server (#25896)

Changed

  • Use "optimize:clear" in "app:name" command (#25922)
  • Revert of "html string support in translator" (e626ab3)

Changed (only realization)

  • Simplify code for contextual binding (e2476c1)

Added

  • Allow array callables to be passed to Gate::before() (#25817)
  • Mail recipient and notifiable can set preferred locale (#25752)
  • Always show seeder info (#25872)
  • Support JSON UPDATE queries on PostgreSQL (#25797)
  • Makes sure changing a database field to JSON does not include a collation (#25741)
  • Added Queued Closures (#25777)
  • Add the ability to skip algorithm checking (#25468, 5fd4b89)
  • Add queue create payload hook (3f68cbe)
  • Authorize Middleware Accept String Parameters (#25763)

Fixed

  • Fix each method on BelongsToMany relationships (#25832)
  • Fix prefixed table indexes (#25867)
  • Fix be method in InteractsWithAuthentication trait (#25873)
  • Fixes the error when $resource is null (#25838)
  • Attach all disk attachments and not only first one in the Mail/Mailable.php (#25793)
  • Fixed: in case if one job throw exception, than we will proceed to next one (#25820)

Changed

  • Trim model class name when passing in Authorize.php middleware (#25849)
  • Improve JSON UPDATE queries on MySQL (#25794)
  • Don't print the generated application key (#25802)
  • Improve "exists" validation with array values (#25819)
  • Only escape trans parameters (98046cb)
  • Added type check for assertExitCode(0) (#25847)

Changed (only realization)

  • Simplify save method MorphOneOrMany relation (#25864)

Added

  • Support MorphTo eager loading with selected columns (#25662)
  • Added possibility to define a complex condition (overwrite shouldAddXsrfTokenCookie method) for add cookie to response in Middleware/VerifyCsrfToken.php

Fixed

  • Fixed tag cache clearing when using Redis (#25744)
  • Fixed broken email subcopy template escaping (#25723)
  • Fixed MethodNotAllowedHTTPException on Intended Redirect (#25739)

Changed

  • Use url() function instead of plain url in views/illustrated-layout.blade.php (25725)

Added

  • Add callback hook for building mailable data in \Illuminate\Mail\Mailable (7dc3d8d)

Fixed

  • Make any column searchable with like in PostgreSQL (#25698)
  • Remove trailing newline from hot url in mix helper (#25699)

Changed

  • Revert of "Remove Hash::check() for password verification" (2e78bf4)

Added

  • Add 'verified' session boolean in VerifiesEmails::verify action (#25638)
  • Add Nelson Mandela to Inspirational Quotes (#25599)
  • Add streamedContent to TestResponse class (#25469, b3f583c)

Fixed

  • Fix app stub when register route option is set to false (#25582)
  • Fix artisan PendingCommand run method return value (#25577)
  • Support custom accessor on whenPivotLoaded() (#25661)

Changed

  • Remove Hash::check() for password verification (#25677)

Changed

  • __toString method in Illuminate/Auth/Access/Response.php (#25539)
  • Do not pass the guard instance to the authentication events (#25568)
  • Call Pending artisan command immediately (#25574, d54ffa5)
  • Use request() method when we called Guzzle ClientInterface (#25490)
  • Replace all placeholders for comparison rules (gt/gte/lt/lte) properly (#25513)

Added

  • Add storeOutput method to Illuminate/Console/Scheduling/Event.php (70a72fc)
  • Add ensureOutputIsBeingCaptured method to Illuminate/Console/Scheduling/Event.php
  • Add options for SES Mailer (#25536)
  • Add Ability to disable register route (#25556)

Fixed

  • Fix database cache on PostgreSQL (#25530)
  • Fix bug with invokables in Illuminate/Console/Scheduling/CallbackEvent.php (eaac77b)
  • Stop sending email verification if user already verified (#25540)
  • Fix withoutMockingConsoleOutput in Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.php (#25499)
  • Fix DurationLimiter not using Redis connection proxy to call eval command (#25505)

Deprecated

  • Make ensureOutputIsBeingCapturedForEmail method deprecated in Illuminate/Console/Scheduling/Event.php

Added

  • Added moontoast/math suggestion to Support module (79edf5c)
  • Send an event when the user's email is verified (045cbfd)
  • Allow email verification middleware to work with API routes (0e23b6a)
  • Add Builder::whereJsonLength() (5e33a96, f149fbd)
  • Pass configuration key parameter to updatePackageArray in Preset (#25457)
  • Let the WorkCommand specify whether to stop when queue is empty (2524c5e)

Changed

  • Make email verification scaffolding translatable (#25473)
  • Do not mock console output by default (b433970)
  • Allow daemon to stop when there is no more jobs in the queue (157a150)

Fixed

  • Do not send email verification if user is already verified (#25450)
  • Fixed required carbon version (394f79f)

Fixed

  • Fixed an issue with basic auth when no field is defined

Changed

  • Remove X-UA-Compatible meta tag (#25442)
  • Added default array value for redis config (#25443)

Check the upgrade guide in the Official Laravel Documentation.