Skip to content

Commit

Permalink
Update CanGenerateModelForms.php
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutkneupane authored Jan 6, 2025
1 parent 71ee66f commit 7ab3b83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function getFormComponents(?string $model = null, array $exceptColumns =
$componentData['type'] = Select::class;

if (array_key_exists($componentName, $enumCasts)) {
$options = $enumCasts[$componentName];
$componentData['options'] = [new Literal("\\{$options}::class")];
$enumClass = $enumCasts[$componentName];
$componentData['options'] = [new Literal("\\{$enumClass}::class")];
} else {
$options = array_combine(
$type['values'],
Expand Down

0 comments on commit 7ab3b83

Please sign in to comment.