Comments (8)
mungkin karena limit integer yang hanya sampai 2,147,483,647
solusi yang saya temukan dengan menambah variable
public $incrementing = false;
pada model Village
from indonesia.
Fixed in v0.8
PS: Ok, saya tahu issue ini sudah berumur sekitar 1,5 tahun, tetapi itu justru menjadikan bug fixingnya lebih greget ^_^, cc @adhatama
from indonesia.
@adhatama Fokus ke angka cantik 2,147,483,647
.
- Itu merupakan batas maksimal tipe data
int
di PHP 32 bit. int
merupakan tipe data default untuk primary key di Eloquent.- Makanya ketika dicasting, ID village (yang notabene angkanya besar-besar) selalu mentok di
2,147,483,647
. Kalau yang ID nya dibawah itu pasti tidak ada masalah. - Solusinya, cek commitan terakhir 😄
from indonesia.
Wah kok aneh ya. Aku ndak bisa ngereproduce issue itu.
Database yang digunakan antara yang query dengan yang di aplikasi udah sama kah?
Dan itu yang result di aplikasi kan dari console log ya? Pas di backend nya apakah hanya manggil Indonesia::findDistrict($districtId, ['villages'])
atau ada olahan lain sebelum dilempar ke view nya?
from indonesia.
di backend kodenya sesuai dengan yang saya catat di atas, ndonesia::findDistrict($districtId, ['villages'])
saya cuma ikuti dokumentasinya, untuk mencari kelurahan. kemudian saya result dari console.log.
tidak ada olahan lain sepertinya, ini kode saya:
from indonesia.
makanya saya heran juga :/
from indonesia.
@uyab jadi masalahnya apa?
from indonesia.
Kenapa kita tidak bisa reproduce, karena laptop dan versi PHP sudah 64 bit.
from indonesia.
Related Issues (20)
- Update Database (Wilayah Pemekaran) HOT 3
- Bisa di update require illuminate/support HOT 1
- error menggunakan fungsi findprovince pada indonesiaservice.php (Attempt to read property "cities" on null) HOT 2
- ASK provinsi baru HOT 1
- Support Laravel 11 HOT 7
- Tidak bisa query pakai laravel 9 model HOT 1
- Laravolt Suitable Dependency HOT 1
- Belum support Laravel 7.0 HOT 1
- update kecamatan di banyuwangi HOT 1
- min di saya kok cuma ada 514 kota, dan gk ada kayak bandung,jakarta,malang, dll HOT 1
- Request support for laravel 8 HOT 5
- I've got this error when running composer require laravolt/indonesia HOT 2
- Saya coba Install package pada laravel 6 terjadi error kenapa ya? HOT 1
- Memperbarui meta + tambah postal code HOT 1
- CSV Parse Error
- Migration error using SQL Server as Database Engine. HOT 4
- Laravel 9 Support
- change in 'code' vs 'id' (?)
- Code districts & villages does not match with source HOT 6
- Class "Geocoder" not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indonesia.