My Blog Posts

Laravel 7.18 Out

Laravel 7.18 Out


The Laravel team released v7.18.0 with an HTTP client withMiddleware method and component attribute updates, and the latest new features, along with changes to branch 7.x, along with fixes.

HTTP withMiddleware

Hannes Van De VrekenwithMiddleware a method to the http client of the framework Added . Uses Guzzle's handler stack to send to a user-defined middleware:

$client = new \Illuminate\Http\Client\PendingRequest(); $debugBar = new \DebugBar\StandardDebugBar(); // Get data collector.
$timeline = $debugBar->getCollector('time');
// Wrap the timeline.
$profiler = new \GuzzleHttp\Profiling\Debugbar\Profiler($timeline);
// Add middleware to the handler stack
$client->withMiddleware(new \GuzzleHttp\Profiling\Middleware($profiler));

New Timer Frequencies

Sjors Ottjes new to the programmer ManagesFrequenciesproperty methods added (through feature ), adds syntax for one, two, and three-minute timesheets:

Before
$schedule->job(SyncSomething::class)->cron('*/2 * * *'); every 2 minutes
// After, new methods
$schedule->job(SyncSomething::class)->everyTwoMinutes();
// PR also adds everyThreeMinutes and everyFourMinutes
$schedule->job(SyncSomething::class)->everyThreeMinutes();
$schedule->job(SyncSomething::class)->everyFourMinutes();

Release notes

Here's a full list of new features and updates, and you can see the differences between 7.17.0 and 7.18.0 on GitHub.

v7.18.0

Added

  • Illuminate\Http\Client\PendingRequest::withMiddleware()# 33315 , b718d3a )
  • ComponentAttributeBag Macro( #33354 )
  • Illuminate\Database\Eloquent\Collection:toQuery()# 33356 , 15586fa )
  • first()For Illuminate\View\ComponentAttributeBag# 33358 , 731b94f )
  • everyTwoMinutes()everyThreeMinutes()everyFourMinutes()methods for Illuminate/Console/Scheduling/ManagesFrequencies# 33379 )

Fixed

  • ConfigurationUrlParserquery decoding method( # 33340 )
  • Illuminate\Database\Eloquent\Relations\Concerns\AsPivot::delete()# 33347 )

Updated

  • Change the placeholder of the valide dots and stars ( #33367 )



Share this article


Comments (0)

Comment