/** * Display a listing of the resource. * * @return Response */ public function index() { return Pegawai::paginate(10, ['name', 'created_at']); }