F
Filament13mo ago
Xiquita

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), ]),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server