Laravel-Many-to-one Polymorphic relationship
问题 I am using laravel 5.1. The scenario is as follows(this is an example. The real scenario is similar to this example) I have 3 models College Student Teacher A college can have many students but a student can belong to only 1 college. A college can have many teachers but a teacher can belong to only 1 college. I want to establish relationships between these tables in laravel. One of the methods for this is to place a college_id foreign key on the Students and Teachers table. But in my case,