php poo insert many to many

-1

If I have a many-to-many relationship: Books Books / Authors Authors Could you help me with the following questions: Do I have to create a class for each table? including the intermediate table? How would the insertion?

Please have a functional example?

Thank you very much for your help

    
asked by Byron2017 11.07.2017 в 07:09
source

1 answer

0

I've done it using the ORM ELOQUENT. if they want the help they are: Use ELOQUENT WITHOUT LARAVEL

Handling Many to Many with eloquent

In any case, if someone could help me with an example without using ORM, I would really appreciate it, I have a little worm about how it will be done that will not leave me alone.

    
answered by 11.07.2017 в 20:27