You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.
Environment:
Laravel-Code-Generator Version: 2.4.4
Laravel Version: 7.23.0
Description:
When generating migration, that contains a reference to users table id getting error incorrectly formed error. since laravel 7.x id() returns bigIncrements field.
Steps/Commands To Reproduce:
change the database engine to InnoDB. Then add a field to migration file something like created_by that references id on users table. Then run the migration.
Before you submit an issue please read this
This repository is only for reporting bugs or issues. If you need support, please use Stack Overflow using laravel-code-generator tag (https://stackoverflow.com/questions/tagged/laravel-code-generator)
Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.
Environment:
Description:
When generating migration, that contains a reference to
userstableidgetting error incorrectly formed error. since laravel 7.xid()returnsbigIncrementsfield.Steps/Commands To Reproduce:
change the database engine to
InnoDB. Then add a field to migration file something likecreated_bythat referencesidonuserstable. Then run the migration.Content Of The Resource-File: