Answers for "laravel 7 dropcolumn"

PHP
6

laravel migration remove column

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
Posted by: Guest on April-16-2020
2

laravel make migration

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

Browse Popular Code Answers by Language