Reputation: 6305
Here are the tables in my scenario
I have my own reasons to have separate table per user (lots of data per user, lots of joins/queries in my app, separation of user data, user satisfaction)
Laravel has migration feature, so you have to create a migration that will create a table..
My question is, how would I use Laravel to my scenario? as I am not sure when user signs up, and I can not pre-generate user tables until a user signs up..
Any help is highly appreciated...
Upvotes: 0
Views: 701
Reputation: 163948
You could use Eloquent Events (do not confuse it with Laravel Events) to run table creation tasks, for example you could run custom artisan command directly from your code.
This command could create migrations from prepared stubs
and then run php artisan migrate
command.
Upvotes: 1