We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
relation_name
relationName
1 parent 228d334 commit a17683cCopy full SHA for a17683c
src/ResourceRelations.php
@@ -65,6 +65,8 @@ final public function handle(Builder $query, Closure $next): Builder | Collectio
65
}
66
67
foreach ((array) $relation_name as $relationship_name) {
68
+ // convert relation_name => relationName
69
+ $relationship_name = str($relationship_name)->studly()->lcfirst()->value();
70
// check if a method with the relation name exists
71
if (method_exists($this, $method = explode('.', $mapping, 2)[0])) {
72
// redirect relation to the custom method implementation
0 commit comments