Let's get started quickly I found new things in Laravel 9.9
Released I wanted to share with you.
- Add a "throw" Method to the PendingRequest Class https://github.com/laravel/framework/pull/41953
private function client(): PendingRequest { return Http::baseUrl('https://www.getrevue.co/api/v2/') ->withHeaders([ 'Authorization' => 'Token ' . config('services.revue.api_key'), ]) ->throw(); }
Here you make an exception for the error, if any
Http::acceptJson() ->get('http://laratips.test/api/test') ->throw() ->json();
- Eloquent Builder withoutEagerLoads() Method https://github.com/laravel/framework/pull/41950
// Before $query->setEagerLoads([]); // After $query->withoutEagerLoads(); $query = User::with(['logins'])->whereNotNull('email_verified_at'); $query->first(); // with eager loads $query->withoutEagerLoads()->first();
- Get All Tables Support for SQLite and SQLServer https://github.com/laravel/framework/pull/41896
Schema::getAllTables(); collect(Schema::getAllTables())->pluck('name_db');
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)