I am working on an application in Laravel, and I have 3 MySQL tables: ( role-users-permissions_users ), I need to know how to fill 2 tables in a single register ie the user registers, a id is saved as a primary in the table " users ", and that id is a foreign key in the table " permissions_users strong> ", but I do not know how to fill in the table" permissions "with the id of the table" user ", I do not know if they understood me . Basically I want to fill 2 tables in a single register, any help will be welcome!