Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improved value resolution and preview generation for morph-to #1358

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Ichinya
Copy link
Contributor

@Ichinya Ichinya commented Dec 5, 2024

You can specify a column in the Morph relationship:

 $fields[] = MoonShine\Fields\Relationships\MorphTo::make('Источник', 'source')->types([
            Bot::class => ['name', 'Бот'],
            Node::class=> ['algorithm.name', 'Блок'],
        ]);

@lee-to lee-to merged commit e833c95 into moonshine-software:2.x Dec 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants