Thursday, September 14, 2023
HomePHPLaravel Triggers is Currently Offered in Laravel 10.17

Laravel Triggers is Currently Offered in Laravel 10.17


The Laravel group launched v10.17 with Laravel Triggers, a config: reveal Artisan command, a Collection technique to guarantee kinds and also even more.

Laravel Triggers

Laravel v10.17 consists of a brand-new reliance for the laravel/prompts plan. Numerous integrated Craftsmen commands obtained updates to integrate motivates right into the experience, which really feels cool! The paperwork for Prompts can be located on the Laravel internet site

Right here you can see a controller kind choice:

Laravel Prompts selection example

And also the outcome after a controller is developed effectively:

Laravel Prompts controller created successfully

You can additionally see called for recognition at work if you strike return on a needed input:
Laravel Prompts required input validation error

If now you sent out a signal with Control+ c, the CLI adjustments to reveal that the command was terminated:
Laravel Prompts cancelled command

We very suggest Viewing Jess Archer’s “Introduction Laravel Triggers” talk from Laracon to find out more concerning them. Laravel Triggers enhances the DX around to generator commands that produce application code

The Triggers plan is readily available on GitHub at laravel/prompts

Include a config: program Artisan command

Francisco Madeira added a config: program Artisan command you can make use of to see setup from the command line:
artisan config:show single example
You can see embedded config worths as well:
artisan config:show nested example

New Collection:: guarantee() technique

Chris Morrell added a brand-new guarantee() technique on the Collection course that makes sure the kind of all products in the collection:

// $customer is ensured to be a Customer or void

$ customer = accumulate($ individuals)

->> guarantee( Customer:: course)

->> initially();

PHP 8.3 Constructs In Laravel Core

Dries Out Vints added PHP 8.3 constructs in Laravel core, which currently consists of .8.3 in the GitHub screening matrix. This foundation will certainly guarantee a smooth change to sustain the brand-new PHP variation in November later on this year!

Launch notes

You can see the total listing of brand-new functions and also updates listed below and also the diff in between 10.16.0 and also 10.17.0 on GitHub.



RELATED ARTICLES

Most Popular

Recent Comments