Skip to content

Commit 54522d7

Browse files
authored
Uses publishesMigrations (#509)
1 parent ccee4b4 commit 54522d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FortifyServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ protected function configurePublishing()
136136
__DIR__.'/../stubs/UpdateUserPassword.php' => app_path('Actions/Fortify/UpdateUserPassword.php'),
137137
], 'fortify-support');
138138

139-
$this->publishes([
139+
$method = method_exists($this, 'publishesMigrations') ? 'publishesMigrations' : 'publishes';
140+
141+
$this->{$method}([
140142
__DIR__.'/../database/migrations' => database_path('migrations'),
141143
], 'fortify-migrations');
142144
}

0 commit comments

Comments
 (0)