Skip to content

Commit 57fa555

Browse files
committed
Fix file to class mapping
1 parent 3697653 commit 57fa555

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Commands/SeedDatabaseStateCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ protected function getStateClasses(): Collection
5353
{
5454
return collect(app(Filesystem::class)->files($this->getFilePath()))
5555
->map(fn ($file) => str($file->getPathname())
56-
->replace([base_path(), '.php', '/'], ['', '', '\\'])
56+
->replace([base_path(), '.php', 'database/states', '/'], ['', '', 'Database\\States', '\\'])
5757
->ltrim('\\')
58-
->ucfirst()
5958
->toString()
6059
);
6160
}

0 commit comments

Comments
 (0)