DEV Community

Morcos Gad
Morcos Gad

Posted on

1

New Things Added - Laravel 9.20 Released

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

$comments = $user->comments->random(5);

// Now
$comments = $user->comments;
$comments = $comments->random(min(5, count($comments)));
$comments = $user->comments->random(fn($items) => min(5, count($items)));
Enter fullscreen mode Exit fullscreen mode
Str::markdown('Use [Laravel](https://laravel.com)!') 
// <p>Use <a href="https://laravel.com">Laravel</a>!</p>

Str::inlineMarkdown('Use [Laravel](https://laravel.com)!') 
// Use <a href="https://laravel.com">Laravel</a>!
Enter fullscreen mode Exit fullscreen mode
<input type='email' name="email" @required( !auth()->user()->is_admin )>
<input type='password' name="password" @required( !auth()->user()->is_admin )>
Enter fullscreen mode Exit fullscreen mode
$replicated = $model->replicateQuietly();
Enter fullscreen mode Exit fullscreen mode

Image description

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://www.youtube.com/watch?v=gHpurEE5Lfs
Source :- https://www.youtube.com/watch?v=kkwQLpIitdE

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay