Created a few of tables in this same time

Viewed 26

If user create new account (register on my website), Laravel create a few of tables - settings (user settings), profile (more information), etc. Sometimes it generate problems becouse if I need to crate new user, I must manually create all tables. OK. I can do that in Register method but in propably I'll do this same in admin Panel or in tests. I know that I can delegate this responsibility to services but my question is - can it be done in a simpler way? I will point out that sometimes certain fields will have to be changed. In the case of registration, I can save most tables with default values (except for the user_id field), but, for example, in the case of tests, or the creation of users by the administrator, this is not an option. Any ideas?

0 Answers
Related