table('slides'); if (!$table->hasColumn('is_hidden')) { $table->addColumn('is_hidden', 'boolean', [ 'null' => false, 'default' => false, 'after' => 'position', ])->update(); } } /** * @return void */ public function down(): void { $table = $this->table('slides'); if ($table->hasColumn('is_hidden')) { $table->removeColumn('is_hidden')->update(); } } }