Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Feb 7, 2024
1 parent 6723cca commit 8a2b625
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function hydrateIntermediateRelations(array $models)
foreach ($intermediateTables as $accessor => $intermediateTable) {
$prefix = $this->prefix($accessor);

if (Str::contains($accessor, '.')) {
if (str_contains($accessor, '.')) {
[$path, $key] = preg_split('/\.(?=[^.]*$)/', $accessor);
} else {
[$path, $key] = [null, $accessor];
Expand Down

0 comments on commit 8a2b625

Please sign in to comment.