DEV Community

Morcos Gad
Morcos Gad

Posted on

1 2

New Things Added - Laravel 9.9 Released

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

private function client(): PendingRequest
{
    return Http::baseUrl('https://www.getrevue.co/api/v2/')
        ->withHeaders([
            'Authorization' => 'Token ' . config('services.revue.api_key'),
        ])
       ->throw();
}
Enter fullscreen mode Exit fullscreen mode

Here you make an exception for the error, if any

Http::acceptJson()
    ->get('http://laratips.test/api/test')
    ->throw()
    ->json();
Enter fullscreen mode Exit fullscreen mode
// Before
$query->setEagerLoads([]);
// After
$query->withoutEagerLoads();

$query = User::with(['logins'])->whereNotNull('email_verified_at');

$query->first(); // with eager loads

$query->withoutEagerLoads()->first();
Enter fullscreen mode Exit fullscreen mode
Schema::getAllTables();

collect(Schema::getAllTables())->pluck('name_db');
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-9-0
Source :- https://www.youtube.com/watch?v=ynJfINXM6U8

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

👋 Kindness is contagious

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

Okay