QRBuilder — Documentation

1. Introduction

This document explains how to configure and use the QRBuilder platform — a multi-tenant QR code generation and management system for retailers.

2. Requirements

ComponentMinimum Version / Note
PHP7.2+ (recommended 7.4)
MySQL5.7+ (or MariaDB compatible)
FrameworkLaravel 7
Composer2.x
Extensionsimagick (for QR code PNG rendering with logos)
DomainRoot of domain or subdirectory

3. Database Configuration

  1. Create a new database (e.g. qrbuilder).
  2. Create DB user and assign privileges.
  3. Update the .env file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=qrbuilder
DB_USERNAME=root
DB_PASSWORD=your_password

4. Environment Configuration

Key .env settings:

APP_URL=https://your-domain.com
MAIL_MAILER=smtp
MAIL_HOST=your-smtp-host
MAIL_PORT=587
MAIL_USERNAME=your-email
MAIL_PASSWORD=your-password
Set MAIL_MAILER=log during development to skip email sending and log emails instead.

5. Overview

QRBuilder is a multi-tenant QR code generation and management platform. Retailers create dynamic QR codes, design custom templates, track scans with geolocation analytics, and manage sub-users — all governed by a flexible subscription system.

6. User Roles

RoleIDDescription
Admin1Full system access. Manages retailers, subscriptions, wallets, QR codes, and content.
Retailer2Primary business user. Creates QR codes and templates, purchases subscriptions, manages sub-users.
Retailer User3Sub-user created by a retailer. Inherits parent retailer's subscription and data access.

7. Admin Panel

Access via /admin

Dashboard

Overview page with system-wide statistics.

Manage QR

Manage Wallets

Manage Retailers

Subscriptions

Retailer Transactions

View all subscription purchase history across retailers with transaction IDs and amounts.

Messages & FAQs

Manage messages from users and create/edit FAQ entries displayed in the retailer help center.

8. Retailer Panel

Access via / (login page)

Dashboard

Overview with total products, scan statistics, and 7-day scan chart.

My Account

View account info, current subscription usage, and feature access status.

Features & Pricing

Purchase subscription features: number of users, scans, products, plus individual feature toggles.

9. QR Code Management

Creating a QR Code

  1. Navigate to Product QR Code → Add
  2. Fill in: Title, Response Type (URL / Text / Image), Response Value
  3. Optional: Expiration date, Buy link, Video link, Overlay description
  4. Submit — system generates a unique slug and product ID
Product ID format: QR0000000001
Each QR code creation decrements one unit from your "Products" subscription allocation.

Response Types

TypeBehavior on Scan
URLDisplays the URL with product information page
TextShows text content on the scan result page
ImageDisplays an uploaded image

QR Code Design & Download

From the QR listing, click the download icon to customize:

Designs can be saved and reused across QR codes.

10. Template System

Templates are pre-designed landing pages accessible via QR code scan.

Available Template Types

TypeDescription
WebsiteSimple URL redirect
Social MediaLanding page with social links and headline
CouponsCoupon display with sale badge and validity
vCard PlusDigital business card with contact info
Business MarketingBusiness landing page with branding
FeedbackFeedback collection form
RatingRating collection interface
VideoVideo display page
PDFPDF document display
FacebookFacebook marketing page
AppApp download/store links
MP3Audio content page
Image GalleryPhoto gallery display

Creation Flow

  1. Select template type
  2. Fill in template details (varies by type)
  3. Customize QR code design
  4. Save — system generates unique slug and template ID

11. Subscription System

Features are gated by subscription plans. Retailers purchase allocations to unlock capabilities.

KeyDescription
productsNumber of QR codes that can be created
number_of_scansTotal scans allowed across all QR codes
number_of_usersNumber of sub-users the retailer can create
buy_linkEnable "Buy" button on QR scan pages
video_linkEnable video display on scan pages
information_sectionEnable product information attachments
product_write_reviewAllow scanners to leave reviews
product_overlay_optionEnable overlay descriptions
product_analyticsAccess to scan analytics and charts
Time-based features expire after configured days. Quantity-based features (products, scans, users) are decremented on each use.

12. Wallet System

13. User Management

Retailers can create sub-users under their account:

  1. Navigate to User Management (profile dropdown)
  2. Add users with name, email, and phone number
  3. System generates a random password and sends it via email
  4. Sub-users inherit the parent retailer's subscription and data
Sub-user limit is controlled by the "number_of_users" subscription allocation.

14. Scan Tracking & Analytics

Every QR code scan records:

View analytics via the "View" (eye icon) on any QR code — 7-day scan chart, country breakdown, and map visualization.

15. Folders

16. Important URLs

URLPurpose
/adminAdmin login page
/Retailer login page
/registrationNew retailer registration
/qr/{slug}Public QR scan endpoint (product QR)
/template/{slug}Public QR scan endpoint (template QR)
/documentationThis documentation page
/clear-cacheClear application cache