Yes It, wold be a good Idea . I managed making with Polymorphic Relation , with a Pivot Table called message_student .
In that Table , I did 4 colum , the - model_send_message , send_id , model_ received_message , received_id . And I did a Polymorphic Relation in the - model_send_message and in the received_message .
2 Polymorphic Relation at the same table . I dont know that wold be a good practice . but is working .
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community