在try 访问资源时显示此信息的Laravel passport
Key path "file://C:\xampp\htdocs\rental_5.0\storage\oauth-public.key" does not exist or is not readable
在try 访问资源时显示此信息的Laravel passport
Key path "file://C:\xampp\htdocs\rental_5.0\storage\oauth-public.key" does not exist or is not readable
您没有提到您的安装步骤.假设您执行了以下操作:
composer require laravel/passport
Register the service provider inside config/app.php
Laravel\Passport\PassportServiceProvider::class,
运行迁移
php artisan migrate
Lastly generate the keys using
php artisan passport:install
I see you are trying it on Windows. I saw an OpenSSL problem on Windows, might help you.