DEV Community

Morcos Gad
Morcos Gad

Posted on

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

Top comments (0)