- 
                Notifications
    You must be signed in to change notification settings 
- Fork 326
add new option in relation_name_strategy key to name has many Relations with plural(Field_name) #194
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
base: v1.x
Are you sure you want to change the base?
add new option in relation_name_strategy key to name has many Relations with plural(Field_name) #194
Changes from 5 commits
0f25d9b
              ca823a0
              f03ed91
              1dcab5b
              824185f
              71d511c
              c21f4ed
              7c697b2
              11af7b7
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -24,7 +24,7 @@ public static function stripSuffixFromForeignKey($usesSnakeAttributes, $primaryK | |
| return preg_replace('/(_)(' . $primaryKey . '|' . $lowerPrimaryKey . ')$/', '', $foreignKey); | ||
| } else { | ||
| $studlyPrimaryKey = Str::studly($primaryKey); | ||
| return preg_replace('/(' . $primaryKey . '|' . $studlyPrimaryKey . ')$/', '', $foreignKey); | ||
| return preg_replace('/(_)(' . $primaryKey . '|' . $studlyPrimaryKey . ')$/', '', $foreignKey); | ||
|          | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.