Skip to content

Commit

Permalink
Fixes publishesMigrations used method
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Dec 11, 2023
1 parent c54f8ef commit 138548a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CashierServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ protected function registerPublishing()
__DIR__.'/../config/cashier.php' => $this->app->configPath('cashier.php'),
], 'cashier-config');

$this->publishesMigrations([
$publishesMigrationsMethod = method_exists($this, 'publishesMigrations')
? 'publishesMigrations'
: 'publishes';

$this->{$publishesMigrationsMethod}([
__DIR__.'/../database/migrations' => $this->app->databasePath('migrations'),
], 'cashier-migrations');

Expand Down

0 comments on commit 138548a

Please sign in to comment.