protected function userRoles($row)
    {
        return function ($row) {

            $roles = $row->roles;
            $value = [];

            foreach ($roles as $role) {
                $value[] = app('html')->create('span', e($role->full_name), [
                    'class' => 'label-basic label-basic--info'
                ]);
            }
            return implode('', [app('html')->create('span', app('html')->raw(implode(' ', $value)), ['class' => 'meta']),]);
        };
    }
protected function userRoles($row)
    {
        return function ($row) {

            $roles = $row->roles;
            $value = [];

            foreach ($roles as $role) {
                $value[] = app('html')->create('span', e($role->full_name), [
                    'class' => 'label-basic label-basic--info'
                ]);
            }
            return implode('', [app('html')->create('span', app('html')->raw(implode(' ', $value)), ['class' => 'meta']),]);
        };
    }
protected function userRoles ( $ row ) { return function ( $ row ) { $ roles = $ row -> roles ; $ value = [ ] ; foreach ( $ roles as $ role ) { $ value [ ] = app ( 'html' ) -> create ( 'span' , e ( $ role -> full_name ) , [ 'class' => 'label-basic label-basic--info' ] ) ; } return implode ( '' , [ app ( 'html' ) -> create ( 'span' , app ( 'html' ) -> raw ( implode ( ' ' , $ value ) ) , [ 'class' => 'meta' ] ) , ] ) ; } ; }
Get user roles column for table builder.

@return callable
Get user roles column for table builder .