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.
1 parent dfe3b8f commit eb07a31Copy full SHA for eb07a31
src/Generators/NovaResourceGenerator.php
@@ -136,7 +136,7 @@ protected function getFieldsFromCommandLineArguments(): array
136
137
protected function getFieldsFromDatabase(): array
138
{
139
- $modelClass = "App\Models\{$this->model}";
+ $modelClass = "App\\Models\\{$this->model}";
140
$model = app($modelClass);
141
$columns = DB::connection($model->getConnectionName())
142
->getDoctrineSchemaManager()
@@ -153,4 +153,4 @@ protected function commandFieldsExists(): bool
153
154
return !empty(Arr::flatten($this->fields));
155
}
156
-}
+}
0 commit comments