aureliee123's avatar

demo website for users

Hello , i am working on an e-commerce project and i want to make a demo version for the users the idea is that the user logs in adds / deletes / updates products and then after an hour i rollback back the databse removing the changes added by the user is there a way to do that using a package or session

0 likes
1 reply
martinbean's avatar
Level 80

@aureliee123 Just schedule a task to run every hour?

$schedule->command('migrate:fresh --force --seed --seeder=DemoSeeder')->hourly();

You might want to run a command that also clears up any uploaded files if users can upload files in the demo.

1 like

Please or to participate in this conversation.