When I create a new "company" in the database, it gets an ID. Upon creation of that company, I want to dynamically create tables prefixed with this ID. For instance:
Step 1 is triggered by form. Steps 2-3 and beyond are triggered by step 1.
The best way I can think to do this inside Laravel is in my store method, upon store, call an artisan command for the migration and pass the ID. Is there a better way to do this?
The answer was provided by @Ohgodwhy in comments on question. spawn a job that creates the tables dynamically.