Skip to content

Commit

Permalink
Remove blueprint macro. This is a 2.0 feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Dec 5, 2024
1 parent d0b8e53 commit 0ab4bc4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/FilamentMoneyFieldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,5 @@ public function boot(): void
$this->publishes([
__DIR__.'/../config/filament-money-field.php' => config_path('filament-money-field.php'),
], 'config');

Blueprint::macro('money', function (string $name, ?string $indexName = null) {
$this->unsignedBigInteger($name);
$this->string("{$name}_currency");

$this->index([$name, "{$name}_currency"], $indexName);
});
}
}

0 comments on commit 0ab4bc4

Please sign in to comment.