Babatunde Daramolaritechoiceacademy.com·Feb 28, 2024How 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 ...LaravelAdd a thoughtful commentNo comments yetBe the first to start the conversation.