Default columns in <resourcename>.php
Hi when I first started tinkering with Filament the <modelname>Resource.php file contained references to columns (fields) within the referenced model. I would then edit out the ones I didn't want.
I want to use Filament on a new project but this time I note that the columns (fields) are not present - e.g. I see
Is there a setting I should be using to achieve what I assumed was default behaviour?
Thanks
j
I want to use Filament on a new project but this time I note that the columns (fields) are not present - e.g. I see
Is there a setting I should be using to achieve what I assumed was default behaviour?
Thanks
j
Solution
To auto create them you need to generate them as per:
https://filamentphp.com/docs/3.x/panels/resources/getting-started#automatically-generating-forms-and-tables
https://filamentphp.com/docs/3.x/panels/resources/getting-started#automatically-generating-forms-and-tables