migrate to an existing table in laravel commad
php artisan make:migration add_paid_to_users_table --table=users
migrate to an existing table in laravel commad
php artisan make:migration add_paid_to_users_table --table=users
add new column in laravel migration
Schema::table('table_name', function (Blueprint $table) {
$table->string('column_name', 255)->nullable()->after('previous_column_name');
});
Laravel Migrations from an existing database
To Generate Laravel Migrations from an existing database.
Use the following package.
https://github.com/Xethron/migrations-generator
migrate to an existing table in laravel commad
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us