Reseed demo tenants after each SSO login.
Deploy Ladill POS / deploy (push) Successful in 1m34s

Demo Free/Pro/Enterprise accounts wipe and reload sample data on
authorization-code SSO callbacks so every sales walkthrough starts clean.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 11:20:18 +00:00
co-authored by Cursor
parent ff098c0a29
commit 4d49336f96
5 changed files with 188 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
return [
'enabled' => (bool) env('DEMO_ACCOUNTS_ENABLED', false),
'reset_on_login' => (bool) env('DEMO_RESET_ON_LOGIN', true),
'accounts' => [
'demo-free@ladill.com' => 'free',
'demo-pro@ladill.com' => 'pro',
'demo-enterprise@ladill.com' => 'enterprise',
],
// Org members share the enterprise owner tenant.
'member_emails' => [
'demo-enterprise-member-1@ladill.com' => 'demo-enterprise@ladill.com',
'demo-enterprise-member-2@ladill.com' => 'demo-enterprise@ladill.com',
],
];