Skip to content

Commit

Permalink
Merge pull request #40 from ejjaquet/main
Browse files Browse the repository at this point in the history
Changed extension for migration files to test on to .php.stub
  • Loading branch information
joaopaulolndev authored Aug 19, 2024
2 parents f50e045 + 4f4bb2c commit 335c10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentEditProfileServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected function getMigrations(): array
public static function migrationFileExists(string $migrationFileName): bool
{
$len = strlen($migrationFileName);
foreach (glob(database_path('migrations/*.php')) as $filename) {
foreach (glob(database_path('migrations/*.php.stub')) as $filename) {
if ((substr($filename, -$len) === $migrationFileName)) {
return true;
}
Expand Down

0 comments on commit 335c10f

Please sign in to comment.