I am looking for a solution that will allow me to run artisan commands from my local machine and take effect from my homestead VM.
For example, when you run php artisan migrate command is launched using the information stored in the .env files on the virtual machine, but my terminal tries to run them locally.
Most commands run successfully because they do not need drivers from the remote machine. Running php artisan route:list works fine.
How to run artisan commands using a local terminal?
source share