Answers for "laravel change column"

PHP
12

laravel migration change column name

Schema::table('users', function (Blueprint $table) {
    $table->renameColumn('from', 'to');
});
Posted by: Guest on April-24-2020
1

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
3

laravel rename table

Schema::rename($currentTableName, $newTableName);
Posted by: Guest on September-15-2020
1

laravel make migration

php artisan make:migration CreateUsersTable
Posted by: Guest on May-04-2020
1

create migration laravel

php artisan make:Model Product -m -c  --resource
Posted by: Guest on November-26-2020

Code answers related to "laravel change column"

Browse Popular Code Answers by Language