DMCA.com Protection Status DMCA.com Protection Status NULLEXPHP - NULLED PHP SCRIPT | FREE NULLED SCRIPT

How to add multiple values to one column using laravel migration?

How to add multiple values to one column using laravel migration?

How to add multiple values to one column using laravel migration?



From Laravel 8.27 you could upload a couple of new columns after aat current column on an equal time. PreviouslyPreviously, it isn`t

In previously, it isn`t tough to write, you`d have to name after() approach for every next new column.
Schema::table('customers', function ($table) {
$table->string('address_line1')->after('password');
$table->string('address_line2')->after('address_line1');
$table->string('city')->after('address_line2');
});
Schema::table('customers', function ($table) {
$table->after('password', function ($table) {
$table->string('address_line1');
$table->string('address_line2');
$table->string('city');
});
});

Post a Comment

Previous Post Next Post

POST ADS1

Facebook Page