Seed Pivot Table
Factory seed pivot table in laravel with many-to-many relationships. ask question up vote 0 down vote favorite. i'm completely new to factories and seeds, and until now i've been manually adding data to each project in sequel pro or workbench an.. We have two main tables (users and roles) and one pivot table (user_role). seed users and roles table with some dummy data and now we need list of ids from users and roles table to seed pivot table. we�ll use db facade to get lists of ids:. Home
Comments
Post a Comment