Laravel Filament admin panel Manage User Tokens

Viewed 17

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

1 Answers

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')
                         ])
Related