F
Filamentβ€’9mo ago
jjo63

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

public static function table(Table $table): Table
{
return $table
->columns([
//
->filters([
//
])

public static function table(Table $table): Table
{
return $table
->columns([
//
->filters([
//
])
Is there a setting I should be using to achieve what I assumed was default behaviour? Thanks πŸ™‚ j
2 Replies
jjo63
jjo63OPβ€’9mo ago
Where's the emoji for slapping one's own forehead? Guess who had forgotten to use the
--generate
--generate
option Sorry

Did you find this page helpful?