Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to specifiy foreign key column name #100

Open
chazzka opened this issue Jun 27, 2023 · 1 comment
Open

Unable to specifiy foreign key column name #100

chazzka opened this issue Jun 27, 2023 · 1 comment

Comments

@chazzka
Copy link

chazzka commented Jun 27, 2023

The based-upon package laravel-follow deals with different config attribute for foreign key (changing the default "user_id").

This is useful when using different Model for auth (instead of the default User)

This package unfortunately omits it, making different foreign key impossible to set, eventually causing errors in autogenerated queries. (interactions.foreign_key_name).

Now, if user wants a different foreign key naming, he can directly specify in migration, but later generated scripts will still respect the previous configuration.

Please consider adding similar configuration as in previous package on this line

@mkwsra
Copy link
Member

mkwsra commented Jun 27, 2023

Hey Chazzka, thanks for your input, and yes for sure! this is something fairly easy to implement, I will take a look at it in the upcoming weeks.

Thanks for pointing it out and for your explanation 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants