I’ve been watching a tutorial on Laravel and there is $table->bigIncrements(“id”) in a migration file, but when I open the same file there is $table->id() function.
Was there any update in which bigIncrements was replaced by id()? I’ve been searching the net for a while but haven’t found anything about it.
Do these functions do the same? Is there any difference between them?
When you are in doubt like that, always go to the source of truth… In this case it is open source, so go to GitHub and look for yourself… This is what all devs do…
More info on the Framework source code…