Label not displayed

Hi, i've to add an AttachAction to my form but the label of the " $action->getRecordSelect()" isn't displyed here's my code Tables\Actions\AttachAction::make() ->form(function ($action) { return [ $action->getRecordSelect()->label('Player'), Forms\Components\Select::make('sport_id') ->label('Sport') ->options(fn () => Sport::pluck('name', 'id')) ->required() ]; }) any idea ?
5 Replies
krekas
krekas2y ago
because you want to shot it in form
Mambi
MambiOP2y ago
@krekas how can i work around this problem?
Dan Harrin
Dan Harrin2y ago
try ->disableLabel(false)
Mambi
MambiOP2y ago
@Dan Harrin it works, thanks a lot, is this in the documentation ?
Dan Harrin
Dan Harrin2y ago
not sure
Want results from more Discord servers?
Add your server