News

Laravel 5.6.20 Released

Published
Laravel 5.6.20 Released image

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

Added support for passing any response (or Responsable) to "abort" helper… can be useful. ✌️ pic.twitter.com/9kV1kqA4uc

— Taylor Otwell ????‍♂️ (@taylorotwell) April 30, 2018

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

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

Filed in

Sponsored

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article