Answers for "delete table with migration 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
0

laravel migration table softdeletes

use Illuminate\Database\Eloquent\SoftDeletes;class User extends Model {use SoftDeletes;    protected $dates = ['deleted_at'];}
Posted by: Guest on September-15-2020

Code answers related to "delete table with migration laravel"

Browse Popular Code Answers by Language