Laravel is a free open-source PHP programming framework developed by Taylor Otwell.
It Packages Based on Symfony. Laravel Uses the MVC (Model, View, Controller ) Pattern on architectural design. The Latest Laravel released Version 7.18 With the improvement of an HTTP client middleware method and view component attribute updates, along with the latest new features, fixes, and changes in the 7.x branch.
HTTP with middleware
It uses Guzzle’s handler stack to push a user-defined middleware to the stack
$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));
View Component Attribute Features
Kevin McKee contributed to making the ComponentAttributeBag macro able. If you’re interested in the benefits I recommend checking out Pull Request which has the details.
Along with this PR, Taylor Otwell contributed more ComponentAttributeBag methods, including filter, where starts With, and that start with (an alias of whereStartsWith):
$this->assertSame('class="font-bold"', (string) $bag->whereStartsWith('class'));
Kevin also contributed a ComponentAttributeBag:: the first method to get the first attribute from a ComponentAttributeBag instance:
{{ $attributes->thatStartWith('wire:model')->first() }}
New Scheduler Frequencies
Sjors Ottjes contributed new scheduling methods to the scheduler (via the ManagesFrequencies trait) adds some syntactic sugar for one, two, and three-minute schedules
// 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();