0

How can i display User Access Tokens and preform operations such as delete them ? I have tried

Forms\Components\Repeater::make("tokens")->schema([
     Forms\Components\TextInput::make('tokens.name')
]),

but it doesn't show the Tokens

STA
  • 30,729
  • 8
  • 45
  • 59
m.abdalla
  • 1
  • 2

1 Answers1

0

You must set the relationship and the input doesn't need the relationship name again, e.g.:

Forms\Components\Repeater::make('tokens')
                         ->relationship('tokens')
                         ->schema([
                              Forms\Components\TextInput::make('name')
                         ])
Matheus
  • 363
  • 5
  • 11