Skip to content

Commit

Permalink
Update ChaosServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Mar 3, 2024
1 parent 6e9a875 commit 8354c4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ChaosServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ public function configurePackage(Package $package): void
public function packageBooted(): void
{
Blueprint::macro('actionBy', function () {
/** @var Blueprint $this */
$this->string('created_by')->nullable();
$this->string('updated_by')->nullable();
});

Blueprint::macro('dropActionBy', function () {
/** @var Blueprint $this */
$this->dropColumn('created_by');
$this->dropColumn('updated_by');
});
Expand Down

0 comments on commit 8354c4e

Please sign in to comment.