Skip to content

Commit

Permalink
fix hot 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
A909M committed Jan 6, 2025
1 parent de09e16 commit 9626edd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Concerns/CanGenerateFormsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function getResourceFormSchema(string $model, bool $isFunCall = false)
} else {
foreach ($components as $componentName => $componentData) {
// Constructor
$Prototype = (string) str($componentData['type']);
$Prototype = '\\'.(string) str($componentData['type']);
$functionName = Str::camel("{$componentName}Field");
$output .= PHP_EOL;
$output .= '/**'.PHP_EOL;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/CanGenerateTablesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function getResourceTableColumns(string $model, bool $isFunCall = fals

foreach ($columns as $columnName => $columnData) {
// Constructor
$Prototype = (string) str($columnData['type']);
$Prototype = '\\'.(string) str($columnData['type']);
$functionName = Str::camel("{$columnName}Column");
$output .= PHP_EOL;
$output .= '/**'.PHP_EOL;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/CanManipulateFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ protected function getDefaultStubPath(): string

return (string) str($reflectionClass->getFileName())
->beforeLast('Commands')
->append('../stubs');
->append('Commands/stubs');
}
}

0 comments on commit 9626edd

Please sign in to comment.