layout
I use a standard layout consisting of a content section and a sidebar, where the sidebar is divided into two grid columns and the left side is reserved for any necessary content for the resource.
I want to make this repeatable and something I can use, perhaps like a pre-built function or a component, and I'm wondering how to do this in Filament. Even though I use snippets to get started, the nested hierarchy is always something I fiddle with when adding inputs to the form.
Here's the code of what I use over and over again, and I would like to save myself some effort as I'm using it in almost every resource I create - is this feasible?
6 Replies
and follows this in the form:

https://filamentphp.com/docs/4.x/resources/code-quality-tips
read this. it may help you
thank you @Hasan Tahseen - this is helpful
This is how I did it in v3. https://github.com/awcodes/filament-extras/blob/main/src/Forms/Components/FixedWidthSidebar.php
GitHub
filament-extras/src/Forms/Components/FixedWidthSidebar.php at main ...
Contribute to awcodes/filament-extras development by creating an account on GitHub.
Adjust accordingly.
that is very cool - i'm straddling v3 and v4 projects and not sure how the new paradigm changes things and just starting to look at plugin development. Very awesome!