Laravel | Polymorphic Relationship unknown column
问题 This is my first time using a polymorphic relationship. I am creating a LMS where a Assignment can be allocated to a individual user or a team so reading the Laravel docs it seems that the Polymorphic Relationship will be a good way to go about it. I have created 4 tables. Users: | id | username | password | created_at | updated_at | Teams: | id | friendly_name | slug | Team User: | id | user_id | team_id | Assignment Allocation: | id | assignment_id | assignmentable_type | assignmentable_id