Laravel 5.8.11 Released
Published on by Paul Redmond
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 onIlluminate\Support\Facades\Date
(#28129) - Allowed
lock
to be configured inlocal 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
toapp_path
during string replacement inIlluminate\Foundation\Console\Kernel::load()
(82ded9a)