public function index(UsersDataTable $dataTable)
    {
        $roles = $this->role->pluck('name', 'id');

        return $dataTable->render('administrator.users.index', compact('roles'));
    }
public function index(UsersDataTable $dataTable)
    {
        $roles = $this->role->pluck('name', 'id');

        return $dataTable->render('administrator.users.index', compact('roles'));
    }
public function index ( UsersDataTable $ dataTable ) { $ roles = $ this -> role -> pluck ( 'name' , 'id' ) ; return $ dataTable -> render ( 'administrator.users.index' , compact ( 'roles' ) ) ; }
Display list of users.

@param \Yajra\CMS\DataTables\UsersDataTable $dataTable
@return \Illuminate\Http\JsonResponse|\Illuminate\View\View
Display list of users .