File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ protected function buildDefinition(Model $model)
163
163
return trim ($ definition );
164
164
}
165
165
166
- protected function buildPivotTableDefinition (array $ segments , $ dataType = 'bigIncrements ' )
166
+ protected function buildPivotTableDefinition (array $ segments , $ dataType = 'unsignedBigInteger ' )
167
167
{
168
168
$ definition = '' ;
169
169
170
170
foreach ($ segments as $ segment ) {
171
- $ column = $ segment . '_id ' ;
171
+ $ column = strtolower ( $ segment) . '_id ' ;
172
172
$ definition .= self ::INDENT . '$table-> ' . $ dataType . "(' {$ column }'); " . PHP_EOL ;
173
173
}
174
174
@@ -197,7 +197,7 @@ protected function isLaravel7orNewer()
197
197
198
198
protected function getPivotClassName (array $ segments )
199
199
{
200
- return 'Create ' . Str::studly ($ this ->getPivotTableName ($ segments )) . 'PivotTable ' ;
200
+ return 'Create ' . Str::studly ($ this ->getPivotTableName ($ segments )) . 'Table ' ;
201
201
}
202
202
203
203
protected function getPivotTableName (array $ segments )
You can’t perform that action at this time.
0 commit comments