php - Laravel 8 - unsupported_grant_type
one text
Solution:
The problem was x-www-form-urlencoded.
This solved my problem (asForm)
$response = Http::asForm()->post('http://url.com', [
'userName' => 'user',
'password' => 'pass',
'grant_type' => 'password'
]);
dd($response->json());
Source