Laravel 5.8.31 Released

Laravel 5.8.31 Released

As we inch closer to the major Laravel 6 release, the Laravel team released v5.8.31 yesterday with the latest fixes and changes to Laravel 5.8. This release doesn’t have any new features, but has a few changes that we’ll look at:

First, the dump() method within a QueryBuilder instance was fixed and is now “chainable”:

DB::table('users')
    ->where('votes', '>', 100)
    ->dump()
    ->get();

Next, the visibility of the hasPivotColumn() method was changed to public:

$relation = $model->somePivotRelation();

if ($relation->hasPivotColumn('position')) {
    // build a specific query containing that attribute
}

You can see the full list of fixes below, and the whole diff between 5.8.30 and 5.8.31 on GitHub. The full release notes for Laravel 5.8 are available in the GitHub 5.8 changelog:

v5.8.31

Fixed

  • Fixed FatalThrowableError in updateExistingPivot() when pivot is non-existent (#29362)
  • Fixed worker timeout handler when there is no job processing (#29366)
  • Fixed assertJsonValidationErrors() with multiple messages (#29380)
  • Fixed UPDATE queries with alias (#29405)

Changed

  • Illuminate\Cache\ArrayStore::forget() returns false on missing key (#29427)
  • Allow chaining on QueryBuilder::dump() method (#29437)
  • Change visibility to public for hasPivotColumn() method (#29367)
  • Added line break for plain text mails (#29408)
  • Use date_create to prevent date validator warnings (#29342, #29389)


Filed in: News


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Laravel Engineer
Remote okay (must already live in USA)
Hawthorne Effect
Senior Software Engineer (Remote - Contract)
Remote
Koodi Systems
PHP Developer
Pittsburgh / Remote
Sequoia Waste Solutions
Software Developer
Eindhoven
Simac IDS
Application Developer Level II (CakePHP / MySql / Vue.js)
Lancaster, PA
Harbor Compliance
FULL STACK LARAVEL DEVELOPER
LONDON - WEST END
AMPERSAND HEATLH
Mid/Senior Laravel Developer - U.S. Developers Only
Kenner, Louisiana
Profit Miner Technologies