Amanda
0
Q:

migrate to an existing table in laravel commad

php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php
1
Schema::table('table_name', function (Blueprint $table) {
            $table->string('column_name', 255)->nullable()->after('previous_column_name');
        });
2
php artisan make:migration create_users_table
2
php artisan make:migration add_paid_to_users_table --table=users
0
public function up()
{
    Schema::table('users', function($table) {
        $table->integer('paid');
    });
}
0

New to Communities?

Join the community