The very first argument passed towards the hasOneThrough technique may be the title associated with the final model we need to access, as the second argument may be the title associated with the model that is intermediate.
Typical Eloquent foreign key conventions is likely to be used whenever doing the partnership’s queries. As the third and fourth arguments to the hasOneThrough method if you would like to customize the keys of the relationship, you may pass them. The 3rd argument could be the title of this international key regarding the model that is intermediate. The 4th argument could be the title of this international key in the model that is final. The 5th argument could be the local key, whilst the sixth argument is the neighborhood key associated with model that is intermediate