LogicException: Key path "file:///var/www/html/delivery-app/storage/oauth-public.key" does not exist or is not readable in file /var/www/html/delivery-app/vendor/league/oauth2-server/src/CryptKey.php on line 52 passport issue code example

Example: Key path "file:///home/user/projectname/storage/oauth-public.key" does not exist or is not readable

#Install passport
composer require laravel/passport

#Register the service provider in config/app.php
Laravel\Passport\PassportServiceProvider::class,

#Run the migrations
php artisan migrate

#Generate key
php artisan passport:install

Tags:

Go Example