Problem
I try to use Laravel Passport, and I get the error {"error": "invalid_client", "message": "Client authentication failed"}. I used it in this Android and Laravel , but I can just register the user correctly as I see the correct data in the database. Then, when the Android application tries to get the access token, it crashes because the server returns the previous error message.
I also followed this YouTube tutorial exactly as it is being explained, but I got this error in the part that it sent the "access token" request. "
Postman Data 
oauth_clients table 
What i tried
I tried to fix this using this Stack Overflow page, this is GitHub and many other web page pages, but nothing worked
Possible reason
I think this may be a mismatch between my version of laravel and the passport (see below). I changed the laravel version manually to 5.4, but I got a composer error. I do not want to reinstall laravel because I think I can destroy all my laravel projects.
The user_id column should be filled with laravel (I have manually changed it to user_id of the user, after which I restored it to zero) 
How to print data on the console? I am using error_log (), but I cannot print the names of the variables and using dd () I get an error saying that the variable cannot be converted to a string.
source share