Skip to content

Commit

Permalink
Update CanGenerateModelForms.php
Browse files Browse the repository at this point in the history
achyutkneupane authored Jan 6, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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'],

0 comments on commit 7ab3b83

Please sign in to comment.