Laravel 7.5 released

Laravel 7.5 is released. The main updates include:

New Http client assertion 

The new version brings two new testing methods for the Http client: 

Http::assertNotSent(
function
 
($request)
 
{
    
return
 $request->hasHeader(
'X-First'
, 
'foo'
) &&
           $request->url() == 
'http://test.com/users'
 &&
           $request[
'name'
] == 
'Taylor'
 &&
           $request[
'role'
] == 
'Developer'
;
});

Http::assertNothingSent();

assertNotSent()  A Boolean condition is returned, which contains constraints that need to match the request.

Added

  • Added  assertNotSent() and  assertNothingSent() method to  Illuminate\Http\Client\Factory ( # 32197 )
  • Added support  renameColumn() for enumeration ( # 32205 )
  • Support returning caster instance ( # 32225 )

See the update instructions for more details:

https://laravel-news.com/laravel-7-5-released

Guess you like

Origin www.oschina.net/news/114796/laravel-7-5-released