Fixed a bug that caused auto-increment issues in laravel