How to specify Laravel relationships based on two (or more) columns (composite keys)
In Laravel Eloquent ORM, there is no way to define a relationship from one model to another by matching more than one column.
For instance, if you want to do something as the below with eager loading, the $this->blog_id will be null while processing
...
ritechoice23.hashnode.dev1 min read