DEV Community 👩‍💻👨‍💻

Morcos Gad
Morcos Gad

Posted on

New Things Added - Laravel 9.23 Released

Let's get started quickly I found new things in Laravel 9.23 Released I wanted to share with you.

new amazing artisan docs command, giving developers quick access to website documentation from the command line

# Opens a choice dialog you can use to type what you want
php artisan docs

# Opens the validation docs
php artisan docs validation

php artisan docs validation unique

# partial searches, will open the unique validation rule
php artisan docs va un
Enter fullscreen mode Exit fullscreen mode
  • Delete a model quietly

method to delete a model from the database without raising any events

use App\Models\Flight;

$flight = Flight::find(1);

$flight->deleteQuietly();
Enter fullscreen mode Exit fullscreen mode

adding the Conditionable trait to Filesystem to allow you to use when() and unless() methods

Storage::disk('public')
    ->when(true)
    ->delete('StardewTaylor.png');
Enter fullscreen mode Exit fullscreen mode

I hope you enjoyed with me and to learn more about this release visit the sources and search more. I adore you who search for everything new.
Source :- https://laravel-news.com/laravel-9-23-0
Source :- https://www.youtube.com/watch?v=Fv_GgcK6pZ0
Source :- https://www.youtube.com/watch?v=OzXgrQfKjbk

Top comments (0)

🌚 Life is too short to browse without dark mode