Answers for "laravel migration add column beginning of the"

PHP
3

laravel migration add column after

Schema::table('users', function ($table) {
    $table->string('email')->after('id')->nullable();
});
Posted by: Guest on December-11-2020
5

laravel add column migration

php artisan make:migration create_users_table --create=users

php artisan make:migration add_votes_to_users_table --table=users
Posted by: Guest on July-18-2020
0

laravel migration add column first

$table->string('column_name')->first()
Posted by: Guest on October-14-2021

Code answers related to "laravel migration add column beginning of the"

Browse Popular Code Answers by Language