aligajani
4 months ago
203
1
Laravel

Adding items to pivot table and main table

Posted 4 months ago by aligajani

For example I have a user who can create projects. But projects can be maintained by other users that exist in the user-project pivot table. What is the ideal way to create the project in the project table and at the same time create an entry in the pivot table?

Please sign in or create an account to participate in this conversation.