| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 9 | trait HasUnusualRelationships |
||
| 10 | { |
||
| 11 | protected function belongsToManyThrough(string $related, string $through, string $foreign = null, string $pivot = null, string $pivotRelatedForeign = null, $pivotThroughForeign = null) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Guess the pivot table name for the provided Models. |
||
| 33 | * |
||
| 34 | * @param Model[] ...$models |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | protected function guessPivot(...$models) |
||
| 44 |