Skip to content

Commit 55e5d71

Browse files
committed
Drop macro
1 parent 81b95c7 commit 55e5d71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LaravelArchivableServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ protected function configureMacros()
2727
Blueprint::macro('archivedAt', function ($column = 'archived_at', $precision = 0) {
2828
return $this->timestamp($column, $precision)->nullable();
2929
});
30+
31+
Blueprint::macro('dropArchivedAt', function ($column = 'archived_at') {
32+
return $this->drop($column);
33+
});
3034
}
3135

3236
/**

0 commit comments

Comments
 (0)