Jeff
Jeff
FFilament
Created by Jeff on 10/18/2023 in #❓┊help
Admin Panel Missing Resources Suddeny
No description
8 replies
FFilament
Created by Jeff on 10/12/2023 in #❓┊help
TimePicker - Prevent end before start with JS timepicker
When using the TimePicker, the user shouldn't be able to choose an END time before the START time for an event. I found another thread by @Spârky that gave a great solution, but doesn't work with the JS version (->native(false)). I've played with it but can't find the magic formula to get the Carbon instances to compare properly. Has anyone got a solution?
8 replies
FFilament
Created by Jeff on 10/9/2023 in #❓┊help
Add/Set Value of Tenant ID when saving
I have the following to allow creation of a "type" when filling in a form. The type is to be tied to the current tenant when saved but the ID isn't passed through, and I don't know how to inject it on SAVE. The mutateFormDataBeforeCreate doesn't seem to work in this context. I'm sure it's simple, but I can't find it. The error complains the field doesn't have a default value - which makes sense.
->createOptionForm([
Forms\Components\TextInput::make('typename')
->required()
->maxLength(255),
Forms\Components\TextInput::make('color')
->required()
->default('#e5e7eb'),
Forms\Components\TextInput::make('display_order')
->required()
->numeric()
->default(999),
])
->createOptionForm([
Forms\Components\TextInput::make('typename')
->required()
->maxLength(255),
Forms\Components\TextInput::make('color')
->required()
->default('#e5e7eb'),
Forms\Components\TextInput::make('display_order')
->required()
->numeric()
->default(999),
])
20 replies