Answers for "delete laravel table migrations"

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
0

delete a migration laravel

// delete a migration safely from laravel 
delete migration from database/migrations/ directory
and also delete entry from migrations table
Posted by: Guest on October-29-2020

Code answers related to "delete laravel table migrations"

Browse Popular Code Answers by Language