FilamentF
Filament3y ago
Hro

Fill defaults on create with $attributes from model

Hi,

Wondering if I am overlooking something.

I would love to always fill the defaults in the form based on the default attributes in the model.

Currently I am adding this to the mount in the create pages:

$this->form->fill($this->getModel()::make()->attributesToArray());


But I kinda feel this should be done already somehow?
Was this page helpful?