Answers for "add a colunm to exiting table laravel"

PHP
6

add another field in existing migration laravel

php artisan make:migration add_paid_to_users_table --table=users
Posted by: Guest on April-30-2020
2

add new column in laravel migration

Schema::table('table_name', function (Blueprint $table) {
            $table->string('column_name', 255)->nullable()->after('previous_column_name');
        });
Posted by: Guest on September-29-2020

Browse Popular Code Answers by Language