How to add column in users data table? For example, phone number column.
You can new columns from both Transformer and DataTable files for Object.
for example to add phone number for Users Table :
'phone' => ['title' => trans('User::attributes.user.phome')
function transform(User $user)
'phone' => $user->phone,
Please login or Register to submit your answer