Why The command "passport:keys" does not exist in php artisan::call
I installed successfully passport package, it works correctly in Laravel controller i need passport key generate again but i have error. How can solve this problem? I don't have access shell exec I want to do it in php.
For me it is important to change passport key when I reinstalled my Laravel App. For Laravel key it works but for passport ....
More: I have in laravel 10 thee command works in shell exec! But in php it can not recognized!
This usually happens when Laravel Passport is installed but its service provider for commands hasn't been registered or loaded correctly. Here’s a clear explanation and how you can solve it, especially since you're trying to call it from PHP, not shell.
Make sure the Service Provider is loaded, Passport is installed correctly...
Other troubleshoots might be... If the passport:keys command isn't recognized inside Artisan::call(), it might be because commands are only registered in console environment.