Closed hazhayder closed 7 months ago
Hello @hazhayder , you can try to extend the form function and customize it with the extra fields you want. Something like this (check the AutoResource class file for better understanding):
public static function form(Form $form): Form
{
return $form
->schema([
SEO::make(), // Your custom field
...FormGenerator::make(
modelClass: static::getModel(),
overwriteColumns: static::getColumnsOverwriteMapped('form'),
enumDictionary: static::$enumDictionary,
)
])
->columns(2);
}
Hello @hazhayder , you can try to extend the form function and customize it with the extra fields you want. Something like this (check the AutoResource class file for better understanding):
public static function form(Form $form): Form { return $form ->schema([ SEO::make(), // Your custom field ...FormGenerator::make( modelClass: static::getModel(), overwriteColumns: static::getColumnsOverwriteMapped('form'), enumDictionary: static::$enumDictionary, ) ]) ->columns(2); }
Thanks this worked
I see, thank you
I really like this particular Filament plugin created an admin panel in under 60 mins, The only problem I am facing at the moment is I am using SEO package https://filamentphp.com/plugins/ralphjsmit-seo which returns a SEO group how can I use that inside this?