/** * Display a listing of the resource. * * @return Response */ public function index() { $users = \DB::table((new \App\User())->getTable())->select('id', 'username', 'password'); $tabla = new \App\library\DataTables(); $tabla->unset_add(); $tabla->unset_delete(); $tabla->add_action('ttt', 'referido.edit'); $t = $tabla->tabla($users, 'usuario'); return view("list")->with('tabla', $t); }