php artisan run migrate in database connection code example
Example 1: php artisan run migration
php artisan migrate
Example 2: How to execute “php artisan migrate” and other Laravel commands in remote server?
ssh [email protected] << EOF
cd /var/www/app/;
php artisan migrate --force; // force prevents artisan from asking for a yes/no on production
exit;
EOF