how to run php artisan migrate code example
Example 1: php artisan run migration
php artisan migrate
Example 2: create laravel migration
php artisan make:migration create_users_table
Example 3: php artisan see last migration
php artisan migrate:status
Example 4: 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