Extend users moduleCreated 6 years ago by lehel
Hello! How can i extend Users-module TableBuilder. I want to add roles to the users columns.
ryanthompson — 6 years ago
This is also something that could probably be added to the table as it is anyways.. some UI work needs to be done!
You can bind your own table builder to it using a service provider somewhere.
$container->bind()in a register method or normal service provider OR
protected $bindings = ;like in an addon service provider will do it.
HEADS UP: In this case there are no handler classes sitting next to the builder: https://github.com/anomalylabs/users-module/tree/2.2/src/User/Table BUT if there were - let's say a
UserTableButtonshandler right next to it you would have to add that to YOUR table builder like
protected $buttons = UserTableButtons::class;.
Again not the case here but good to know when extending other UI