Bert
Bert
Hasn't logic changed now? Because `getProvider()` used to check for `instanceof` (in `getProviders()`) and now it doesnt anymore.
Why is it called "inverse" instead of something more sensible like `->linksTo()` or `->references()`? Just throwing some ideas out here.
> > Why is it called "inverse" instead of something more sensible like `->linksTo()` or `->references()`? Just throwing some ideas out here. > > Essentially it's marking the reverse/inverse _relationship_,...
> No, it's setting the "parent" model as the inverse relationship. `$user->hasMany(Post::class)->inverse()` will try to find the relationship that links the post back to the user - i.e.`$post->belongsTo(User::class)`. > >...