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 has been archived by the owner on Aug 9, 2022. It is now read-only.
Is there a way to generate the scaffold on a table that does not have ID as the key? It seems that it assumes that it must be there and does not recognize the real key.
The text was updated successfully, but these errors were encountered:
@kirchaj you can use Generator From Existing Tables to generate views which will create CRUD, but then you need to do changes based on your primary keys in your repository and controller.
@kirchaj I have made a simple adjustment when you use "--fromTable" option, the generator will get the first field the table and use it like primary key, putting the (public $primaryKey = "first_field_id";) on the Eloquent Model. Also will use the primary key in the Views (before this change was hard coded with "id").
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to generate the scaffold on a table that does not have ID as the key? It seems that it assumes that it must be there and does not recognize the real key.
The text was updated successfully, but these errors were encountered: