Xiquita
Create new custom input
Hello friends, is there any way in the resource form to get the user to create their custom input, for example a text input, toggle or check box and it saves to the current model ?
That option to create a new input only ceartan user with a specific role could do.
10 replies
recordSelectSearchColumns on GetRelation
Hello friends, I have a question, I'm in a get relation and I want in an attach action to do a search in the select for the name and for another field in the same table, I tried searching for the field by id and it worked but I wanted to use the name of the field, any solution? Thanks
I want that equipmentbrands.name to appear in the select search
5 replies
withPivot()
Hello friends, I made this code and saw on the internet that I had to put ->withPivot('serial_number') but my question is where can I put it? Thanks
Tables\Actions\AttachAction::make()
->color('success')
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('serial_number')
->numeric()
->minValue(1)
->label(__('construction-equipment.construction_equipment_resource.serial_number'))
->unique(ignoreRecord: true)
->required()
->maxLength(255),
]),
2 replies
Themes brandLogo
Hello friends, I have a problem here, when trying to use the brand logo method, an error appears saying that it does not exist. Any solution?
https://filamentphp.com/docs/3.x/panels/themes#adding-a-logo
15 replies