Passport laravel createToken Personal access client not found

for me it solved by running

php artisan passport:install

because it have been happened after refreshing my database.


You have to create access clients first. It is documented here. An access client it not the same than a user token, you can have one access client and many users with different passwords and tokens.


In addition to the namelivia's comment. As Laravel doc says:

Before your application can issue personal access tokens, you will need to create a personal access client. You may do this using the passport:client command with the --personal option. If you have already run the passport:install command, you do not need to run this command:

php artisan passport:client --personal

But if you did not run the command:

php artisan passport:install

You should run it first.