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

Th3apprenTis's avatar

Append records before saving to database

Hello,

In my Nova resource i have a field for IP address.It works fine for single IP address (10.0.0.0) but now i want to be able to support subnet like 10.0.0.0/24. Now when i save a record with an Eloquent Model , how can i duplicate the records , change the IP for each and let nova save to database.

As of now i would need to manually add 255 ips to database from nova which is tedious

0 likes
0 replies

Please or to participate in this conversation.