Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Laravel 5.7.23 Released

Published on by

Laravel 5.7.23 Released image

Never Miss a Laravel Release 🚀

Sign up and get an email with each new Laravel release

The Laravel team and contributors released Laravel v5.7.23 yesterday, along with a fix release for the ResetPassword notification in v5.7.24.

The bulk of the new changes are in v5.7.23:

First, the AbstractPaginator::getOptions() was added to retrieve the original paginator options which are now stored in an $options property.

Next, an orWhere proxy method was added for scopes in the EloquentBuilder, with a new class introduced to Illuminate\Support called HigherOrderBuilderProxy to proxy scope calls onto the query builder. Given the scopes one, two, and three, you can write the following:

$model->newQuery()
->one()
->orWhere->two()
->orWhere->three();

You can now configure the app path for your application, which was previously only possible through subclassing the Application class. In the bootstrap/app.php file after the application instance is created:

$app = new Illuminate\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
 
$app->useAppPath(__DIR__ . '/../src/App');

The last new feature in v5.7.23 is a configuration for the stack logger:

'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'ignore_exceptions' => true,
],

When set to true, the handlers are wrapped in Monolog’s WhatFailureGroupHandler handler. Their wrapper/special handlers documentation describes this handler as follows:

This handler extends the GroupHandler ignoring exceptions raised by each child handler. This allows you to ignore issues where a remote tcp connection may have died, but you do not want your entire application to crash and may wish to continue to log to other handlers.

Next, v5.7.24 was tagged to fix the ResetPassword notification’s call to Lang::getFromJson(). See the PR #27351 for details. Users should upgrade to v5.7.24.

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

v5.7.24 (2019-01-30)

Fixed

v5.7.23 (2019-01-29)

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)
Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Jump24 - UK Laravel Agency

Laravel Developers that Click into Place. Never outsourced. Never offshored. Always exceptional.

Visit Jump24 - UK Laravel Agency
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
Statamic 6 Is Officially Released image

Statamic 6 Is Officially Released

Read article
Livewire 4 and Blade Improvements in Laravel VS Code Extension v1.5.0 image

Livewire 4 and Blade Improvements in Laravel VS Code Extension v1.5.0

Read article
Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension image

Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension

Read article
NativePHP for Mobile Is Now Free image

NativePHP for Mobile Is Now Free

Read article
Fuse for Laravel: A Circuit Breaker Package for Queue Jobs image

Fuse for Laravel: A Circuit Breaker Package for Queue Jobs

Read article
Generate Complete Application Modules with a Single Command using Laravel TurboMaker image

Generate Complete Application Modules with a Single Command using Laravel TurboMaker

Read article