Demo data and demo mode
Load demo data
To see the marketplace full of activity, for testing, screenshots or a sales demo, load the demo data into an empty installation:
cd backend
php artisan demo:seed
It takes a few seconds and adds:
- The Cleaning and Handyman starter catalogs, in English, Arabic, Indonesian and Spanish.
- 40 approved providers around one city, with services, prices, weekly hours and ratings.
- 30 customers with saved addresses.
- About 200 bookings in every state, from new requests to completed, cancelled, disputed and refunded, each with its timeline, payments, reviews and replies.
- 30 job posts with quotes, in every state.
- Chats between customers and providers.
Sign in with these accounts. The password is password unless you set DEMO_PASSWORD in .env.
| Login | What you see |
|---|---|
customer@demo.test |
A customer with bookings in every state, job posts with quotes, and chats |
provider@demo.test |
Bright Nest Cleaning: new requests, jobs today, a month of earnings, reviews |
admin@demo.test |
The admin panel as a super admin |
The people, businesses, addresses and reviews are all made up. There are no photos; profile pictures show initials.
Choose the city
The demo is set in Austin by default, with prices in US dollars. Pick another city with --city, or set DEMO_CITY in .env:
| City | Currency | Command |
|---|---|---|
| Austin | USD | php artisan demo:seed --city=austin |
| Dubai | AED | php artisan demo:seed --city=dubai |
| Jakarta | IDR | php artisan demo:seed --city=jakarta |
| London | GBP | php artisan demo:seed --city=london |
The command also sets the currency, country and timezone in Settings → Business to match the city. To use the app with this data, set your own location near that city in the app.
Don't load demo data into a live marketplace: it adds made-up accounts and bookings. On a production server the command asks before it runs.
Start over
php artisan demo:reset
Deletes everything except the settings (users, bookings, uploads), then loads fresh demo data. It asks for confirmation; add --force to skip the question, for example in a nightly cron job on a public demo:
0 3 * * * cd /var/www/niceserve/backend && php artisan demo:reset --force >> /dev/null 2>&1
Demo mode
On a public demo, visitors sign in as an admin, so they could change your keys or delete accounts. Turn on demo mode in backend/.env:
DEMO_MODE=true
then run php artisan optimize. In demo mode:
- The admin panel shows a banner that this is a demo.
- These actions are refused with the message This is turned off in the demo.: saving settings and testing integrations, inviting, changing or removing admins, suspending or deleting users, sending password resets, refunds, and broadcast notifications.
- In the app, users can't change their password or delete their account.
Everything else works as usual, so visitors can book, quote, chat, approve providers and resolve disputes. Demo mode is a server setting on purpose: an admin can't switch it off from the panel.