Laravel 5.6.20 Released

Laravel 5.6.20 Released

Laravel 5.6.20 was released May 3rd 2018, with the ability to give the abort() helper function a Response or a Responsable object:

Next, this release brings two new methods to the task scheduler,
pingBeforeIf and thenPingIf to conditionally ping before or after a task respectively:

$schedule->command('something')
    ->everyMinute()
    ->pingBeforeIf(app()->environment('production'), $url)
    ->thenPingIf(app()->environment('production'), $url);

Last, the MorphTo relationship now supports withDefault() that is returned if the relationship is null.

Here are the full release notes for the v5.6.20 release:

v5.6.20 (2018-05-02)

Added

  • Support passing Response and Responsable to abort() (4e29889)
  • Added pingBeforeIf and thenPingIf methods to task scheduler (#24077, 1bf54d2)
  • Added withDefault() support to MorphTo relationships (#24061)

Fixed

  • Fixed URL generator when request has base path (#24074)

Filed in: News
Laravel News Partners

Laravel Jobs

Senior Full Stack Engineer - Laravel
Remote
Givebutter
Laravel partner seeks Lead Developer
Remote
Kirschbaum Development Group
Senior Programmer **Immediate Opening** (send resume to daniel@sbgcorp.com)
Remote
SBG Corp
Web Developer - Laravel
Grand Forks, North Dakota
Center for Rural Health
Senior Full-Stack Laravel Developer
Berlin, Germany
felmo.de

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.