Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

IgorHrcek's avatar

Generate Nova fields using data stored in a table

I have a model called SshConfiugrationParameteres which has the following table fields:

id
name
label

Example dataset would look like this:

1  SSH Key        IdentityFile
2 SSH User      User
3 Host name  HostName 

I also have another model called SshConfigurations which has the following table fields:

id
config_id
ssh_configuration_parameter_id
value
server_id

One SsshConfiguration can have multiple SshConfigurationParameters.

Now, I want to create an interface using Nova that will list all values from SshConfiugrationParameteres model table, and to store values inside SshConfigurations table.

I haven't found a way to do this in Nova documentation because it looks like Nova is not capable of working with cases like mine where model fields are not defined traditionally.

Is there a way around that in Nova?

0 likes
1 reply
bugsysha's avatar

You can always use model accessors and mutators to your advantage, but I would suggest to use Nova Action to do what you've described.

Please or to participate in this conversation.