We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Basically, when I'm using BelongsTo field outside the addLayout is working good.
But when I'm trying to use a Flexible field and I'm trying to use BelongsTo inside addLayout method this is not working.
Flexible::make(__('Parameter'), 'parameter') ->addLayout(__('Parameter'), 'parameter', [ BelongsTo::make(__('Param'), 'param', Param::class) ->sortable() ->rules('required'), ]) ->button(__('Add Parameter'))
The text was updated successfully, but these errors were encountered:
As a workaround, you can use a Select field with pluck() to list all your relations, but this would be nice to have regardless.
Select
pluck()
Sorry, something went wrong.
Thank you for the reply. I was just wondering if was supported or not, I will use the workaround that you mentioned
No branches or pull requests
Basically, when I'm using BelongsTo field outside the addLayout is working good.
But when I'm trying to use a Flexible field and I'm trying to use BelongsTo inside addLayout method this is not working.
The text was updated successfully, but these errors were encountered: