Laravel Passport Auth Stuck when run on standalone project for password based token authentication

MR *_*iya 2 php oauth-2.0 laravel laravel-5 laravel-passport

Laravel Passport Auth Stuck when run on self server and client in same project for password based token authentication

LoginController

public function authenticaterrr(Request $request)

{
     $http = new Client();

    try{
                //dd("Hello");

        $response = $http->post(url('oauth/token'), [
        'form_params' => [
            'grant_type' => 'password',
            'client_id' => '2',
            'client_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            // 'username' => $request->get('username'),
            // 'password' => $request->get('password'),
              'username' => 'xxxxxx@xxxxx.com',
                'password' => 'xxxxx',
            'scope'     => '*',
         ],
         ]);

       //  $apiResponse = json_decode((string) $response->getBody(), true);

       // dd($apiResponse);
         $apiResponse = json_decode((string) $response->getBody(), true);

        dd($apiResponse);
        session(['api'=> $apiResponse]);
        session(['api-token'=> $apiResponse['access_token']]);
        return json_decode($response->getBody(), true);
    }catch (ClientException $exception){
        dd("Hello");
        return json_decode($exception->getResponse()->getBody(), true);
    }
}
Run Code Online (Sandbox Code Playgroud)

IN Web.php

Route::get('/auth/api/validate', 'Auth\LoginController@authenticaterrr');
Run Code Online (Sandbox Code Playgroud)

In PostMan It didn't Get and Stuck Here is Output

If i will create new Project and Use that than it will work for me so what would be solution to run in same project

eig*_*ive 5

如果您在内置 PHP 服务器 / 上运行 Web 应用程序php artisan serve,则第二个auth/tokenPassport 请求将“杀死”第一个authenticaterrrHTTP 请求。

这是因为内置的 PHP 服务器是单线程的

感谢此评论