public function data()
 {
     $vocabularyHasUsersBuilder = $this->repo->search('', false);
     return Datatables::of($vocabularyHasUsersBuilder)->addColumn('actions', function ($model) {
         return '<a class="btn default btn-xs purple" href="/vocabularyHasUsers/' . $model->id . '/edit' . '"><i class="fa fa-edit"></i> Editar </a>
             <a href="/vocabularyHasUsers/' . $model->id . '/delete' . '" class="btn btn-xs red"><i class="glyphicon glyphicon-trash"></i> </a>';
     })->make(true);
 }
 /**
  * Remove the specified VocabularyHasUser from storage.
  * DELETE /vocabularyHasUsers/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->vocabularyHasUserRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "VocabularyHasUser deleted successfully");
 }