📜  如何使用邮递员登录 laravel 护照 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.429000             🧑  作者: Mango

代码示例1
$response = $http->post('http://your-app.com/oauth/token', [
    'form_params' => [
        'grant_type' => 'password',
        'client_id' => 'client-id',
        'client_secret' => 'client-secret',
        'username' => 'taylor@laravel.com',
        'password' => 'my-password',
        'scope' => '',
    ],
]);