Extend users module
Created 7 years ago by lehelHello! How can i extend Users-module TableBuilder. I want to add roles to the users columns.
ryanthompson
—
7 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.
Using
$container->bind()
in a register method or normal service provider ORprotected $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
UserTableButtons
handler right next to it you would have to add that to YOUR table builder likeprotected $buttons = UserTableButtons::class;
.Again not the case here but good to know when extending other UI