php artisan migrate laravel code example
Example 1: how to migrate single table in laravel
php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php
Example 2: create laravel migration
php artisan make:migration create_users_table
Example 3: php artisan migration refresh
php artisan migrate:refresh --step=1
Example 4: 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