Clean up verbosity of Filament form
Hello everyone, I have a fairly complex form with many layouts and repeaters. The "form" method of my resource is very verbose and indented. I find it challenging sometimes to read.
Therein lies my question, are there any standard practices around cleaning up the "form()"? For instance, moving a section to a separate method. Thanks in advance
Solution:Jump to solution
here is one way to do it, this is a very stripped down example, but should get the point across π
that way you can split it how ever you like, bonus that you can just ctrl + click in your IDE to get to that code easily
```php...
2 Replies
Solution
here is one way to do it, this is a very stripped down example, but should get the point across π
that way you can split it how ever you like, bonus that you can just ctrl + click in your IDE to get to that code easily
That's exactly what I was looking for! Thank you, MUCH cleaner