Skip to content

Commit 816709a

Browse files
committed
Added conversion of the parent module's foreign key to a snake case
1 parent eee8317 commit 816709a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/Admin/ModuleController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ protected function getParentModuleForeignKey()
18531853
{
18541854
$moduleParts = explode('.', $this->moduleName);
18551855

1856-
return Str::singular($moduleParts[count($moduleParts) - 2]) . '_id';
1856+
return Str::snake(Str::singular($moduleParts[count($moduleParts) - 2])) . '_id';
18571857
}
18581858

18591859
/**

0 commit comments

Comments
 (0)