Laravel 5.8.11 Released

Laravel 5.8.11 Released

The Laravel team released Laravel 5.8.11 yesterday with the ability to call date macros directly on the Date facade, a configurable lock on the local filesystem adapter, and the tracking of the exit code on scheduled event commands.

First , you can call macros directly on the Date facade:

Date::macro('example', function () {
    return 'hello';
});

Date::example(); // hello

Next, the local filesystem adapter has a configurable lock parameter where before it was hard-coded to LOCK_EX.

Last, the scheduler Event class now has a public $exitCode property to track the exit status code of a scheduled command.

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

v5.8.11

Added

  • Allowed to call macros directly on Illuminate\Support\Facades\Date (#28129)
  • Allowed lock to be configured in local filesystems (#28124)
  • Added tracking of the exit code in scheduled event commands (#28140)

Fixed

  • Fixed of escaping single quotes in json paths in Illuminate\Database\Query\Grammars\Grammar (#28160)
  • Fixed event discovery with different Application Namespace (#28145)

Changed

  • Added view path to end of compiled blade view (in case if path is not empty) (#28117, #28141)
  • Added realpath to app_path during string replacement in Illuminate\Foundation\Console\Kernel::load() (82ded9a)

Refactoring

  • Refactoring of Illuminate\Foundation\Events\DiscoverEvents::within() (#28122, 006f999)


Filed in: News / Releases


Newsletter

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

Laravel News Partners

Laravel Jobs

Software Engineer Lead (PHP)
Remote
CivicPlus, LLC
Full-time Senior Web Developer
Detroit, MI
Wayne State University
Senior Software Engineer
Sydney, Australia
FoodByUs
Full Stack Engineer
Remote or Medford, Oregon
Empire Medical
Laravel Developer (fulltime - Dutch only)
Netherlands
Qbixx | Webservices
Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Senior Quality Assurance Engineer
Remote
Bisnow Media