one-of-many relationships landing today in laravel 8.x

Laravel now supports one-to-one relations that are a partial relation of a larger one-to-many relation.

These are: **hasOne** ∈ hasMany, **morphOne** ∈ morphMany

Here's the pull request: [](

And here are some examples:

[latest published price for a product](

[current payment state using morph via stateful](

5 thoughts on “one-of-many relationships landing today in laravel 8.x”

  1. This is the sort of thing that when it comes along, you think, how have we coped without this before?

    Loads of use cases and I’m sure we’ll be using it a lot in our projects as soon as we upgrade.


Leave a Comment