Skip to content

Commit 062d4fd

Browse files
authored
Merge pull request #185 from Laravel-Backpack/fix-build-stringable-value-bug
Fix: `build` command triggered an error on Laravel 8
2 parents ec7f69d + 195dbc2 commit 062d4fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Console/Commands/BuildBackpackCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ private function getModels(string $path): array
6868
}
6969

7070
// Try to load it by path as namespace
71-
$class = Str::of($filepath)
71+
$class = (string) Str::of($filepath)
7272
->after(base_path())
7373
->trim('\\/')
7474
->replace('/', '\\')
7575
->before('.php')
76-
->ucfirst()
77-
->value();
76+
->ucfirst();
7877

7978
$result = $this->validateModelClass($class);
8079
if ($result) {

0 commit comments

Comments
 (0)