getAuthorNameField() or getMetaSection() to easily call those methods when defining my form schema in multiple resources. This keeps things consistent, and I can re-order or keep/exclude things in various resources according to other requirements, without making it hard to maintain. form(Form $form) method simply defines the Grid and Sections schema, and then inside the Sections I call the various getFoo() methods from my trait. In some cases I call complete sections via a getFooSection() method in my trait, where I always use the same form elements when using that section.Join the Discord to ask follow-up questions and connect with the community
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181 Members
Join