Laravel 7.18 Out

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

HTTP withMiddleware

Hannes Van De VrekenwithMiddleware , framework a method to the HTTP client 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 (via feature), adds syntax for one, two, and three-minute timelines:

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

Below is the 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 )

constant

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

Updated

  • Replace the placeholder of valide points and stars ( #33367 )

  Quote

KARABAY A, 2020 . Laravel 7.18 Out,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-718-cikti-2020-07-08-155258

(Accessed July 08, 2020).


  Share this post

Comments (0)

Comment

Subscribe
Sign up for the email newsletter to be the first to know about my blog posts