WessBechard
spatie media User
If you're trying to attach uploads to a model, you're missing the steps where you add that connection. Check here. https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#setting-a-form-model
6 replies
Error on creating record
Ok I figured it out, but it seems like either I'm doing it wrong, or it's a bug.
Issue occurs when I try to set the default value for a Select. If I remove the default, it works.
Forms\Components\Select::make('currency_type')
->options(['CAD', 'USD'])
->default('CAD')
In that example, simply setting the default makes this very unhelpful error message show.5 replies