How to execute php artisan migrate and other Laravel commands in remote server? code example
Example: How to execute “php artisan migrate” and other Laravel commands in remote server?
ssh root@127.0.0.1 << EOF
cd /var/www/app/;
php artisan migrate --force; // force prevents artisan from asking for a yes/no on production
exit;
EOF