Skip to content

Latest commit

 

History

History
276 lines (207 loc) · 21.4 KB

CHANGELOG-5.7.md

File metadata and controls

276 lines (207 loc) · 21.4 KB

Release Notes for 5.7.x

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.