We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34000db + d6447ee commit 867a233Copy full SHA for 867a233
src/Console/Commands/BuildBackpackCommand.php
@@ -83,8 +83,8 @@ private function getModels(string $path): array
83
84
// Try to load it from file content
85
$fileContent = Str::of(file_get_contents($filepath));
86
- $namespace = $fileContent->match('/namespace (.*);/')->value();
87
- $classname = $fileContent->match('/class (\w+)/')->value();
+ $namespace = (string) $fileContent->match('/namespace (.*);/');
+ $classname = (string) $fileContent->match('/class (\w+)/');
88
89
$result = $this->validateModelClass("$namespace\\$classname");
90
if ($result) {
0 commit comments