Summary
We are writing unit tests to test the creation and invalidation of JWT tokens and receiving a \"The token could not be parsed from the reque
I tried the following code in Controller constructor:
if (env('APP_ENV') == 'testing' && array_key_exists("HTTP_AUTHORIZATION", request()->server())) { JWTAuth::setRequest(\Route::getCurrentRequest()); }