Answers for "schema add column laravel"

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

schema add column laravel

Schema::table('users', function($table) {
    $table->string("title");
    $table->text("description");
    $table->timestamps();
});
Posted by: Guest on August-24-2020

Browse Popular Code Answers by Language