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

feat: Add support for other Foreign Key for different Models #78

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

robsonek
Copy link
Contributor

@robsonek robsonek commented Jul 4, 2024

You must first create a model with such a foreign key instead of default user_id

e.g

public string $versionModel = OffersVersions::class;
public string $userForeignKeyName = 'token_id';

You must first create a model with such a foreign key instead of default user_id
@overtrue overtrue merged commit e940d82 into overtrue:5.x Jul 4, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants