Skip to content

Commit eb07a31

Browse files
author
Konstantin Lapkovsky
committed
chore: correct getting model instance.
1 parent dfe3b8f commit eb07a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generators/NovaResourceGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function getFieldsFromCommandLineArguments(): array
136136

137137
protected function getFieldsFromDatabase(): array
138138
{
139-
$modelClass = "App\Models\{$this->model}";
139+
$modelClass = "App\\Models\\{$this->model}";
140140
$model = app($modelClass);
141141
$columns = DB::connection($model->getConnectionName())
142142
->getDoctrineSchemaManager()
@@ -153,4 +153,4 @@ protected function commandFieldsExists(): bool
153153
{
154154
return !empty(Arr::flatten($this->fields));
155155
}
156-
}
156+
}

0 commit comments

Comments
 (0)