[9.x] Extract child route model relationship name into a method (#43597)
[9.x] Extract child route model relationship name into a method (#43597)

* Extract child route model relationship name

* Fix style

* Update Model.php

Co-authored-by: Taylor Otwell <5d74ae093a16a00e5af127763f2dc7e13988f162@laravel.com>
lucasmichot/framework,lucasmichot/framework,hafezdivandari/framework,driesvints/framework,arturock/framework,laravel/framework,laravel/framework,arturock/framework,arturock/framework,driesvints/framework,hafezdivandari/framework