Smart Visitorv2.0 Documentation
Support

Smart Visitor documentation

Everything you need to install, set up and run your visitor management: registering and pre-registering guests, QR passes and scanning, hosts and approvals, attendance and leave, dashboards and reports, your own website, the Android and iPhone app, and the AI tools.

LaravelMulti-company SaaSOne mobile appAI tools

Install in minutes   Explore the features

Getting started

Overview

Smart Visitor is a complete visitor-management system. Run it for your own organisation, or as a SaaS: organisations sign up, pick a plan and manage their visitors, hosts, staff attendance and public website in one place, with their data kept completely separate.

How the pieces fit together

PartWhat it isWho uses it
Admin panelThe back office: visitors, pre-registrations, passes, attendance, leave, reports, notifications and settings.Super admin, owner, managers, reception
Pre-registration pageA public page (/pre-register/your-company-code) where guests register their visit before they arrive.Guests
Company websiteA public website built from blocks, with a pre-registration page, a visitor guide and your own domain.Guests, owner (editor)
Mobile appOne app for every role: approve visits, scan passes, check people in and out, clock in, and open a guest pass.Owner, managers, reception, hosts, guests
AI toolsAn assistant, a dashboard briefing, category suggestions and a weekly summary, using the AI service each owner connects.Owners and managers
SaaS consoleCustomers, plans, payments, coupons, the landing page and revenue reports.Super admin

Quick-start checklist

  1. InstallCheck the requirements, create the database, upload the files and run the installer.
  2. Log in and secure the accountsUse the default logins once, then change every password.
  3. Switch on the background workAdd the cron line so no-show checks, overstay alerts and the daily and weekly summaries run.
  4. Company and emailIn Settings fill in the Company and Email tabs. See Settings.
  5. Describe your visitsCreate visit categories and add your hosts and reception staff.
  6. Take your first visitorCreate a visitor or share the pre-registration link, approve the request and check the guest in.
Tip
The owner dashboard shows a Finish setting up checklist (company details, a visit category, a host, a notification, your website and AI). It disappears when everything is done.
Getting started

Server requirements

Smart Visitor is built with Laravel 9. Make sure your hosting meets the following before you start.

PHP
8.0.2 or newer (8.1 or 8.2 recommended)
Database
MySQL 5.7+ (8 recommended) or MariaDB 10.3+
Web server
Apache (with mod_rewrite) or Nginx
HTTPS
Strongly recommended. Required for the mobile app in production, the camera on the scan page, online payments and push notifications.
Cron
One cron line, see Background work

Required PHP extensions

BCMathCtypecURLDOMFileinfoGDJSONMbstringOpenSSLPDO MySQLTokenizerXMLZip
Note
The installer checks all of this for you in step 2 and shows a green tick next to everything that is fine.

Folders that must be writable

storage, bootstrap/cache and public/uploads (website pictures). The installer checks these too.

Same owner
The web server user (for example www-data) must be able to write in these folders. If you also run php artisan commands as another user, files created by that user can become unwritable for the website and cause "permission denied" errors. Run the commands as the web server user, or fix the ownership afterwards, see Troubleshooting.
Getting started

Create the database

The steps below use cPanel. Other hosting panels offer the same options under similar names.

  1. Open the database toolIn your hosting panel go to Databases and click MySQL® Databases.
    The Databases section of cPanel
  2. Create the databaseType a name and click Create Database. Your host adds a prefix to the name; write the full name down.
    Creating a database
  3. Create a database userIn Add New User enter a user name and a strong password (use the generator) and click Create User.
    Creating a database user
  4. Add the user to the databaseIn Add User To Database choose the user and the database, then click Add.
  5. Give all privilegesTick ALL PRIVILEGES and click Make Changes.
    Giving the user all privileges
Keep these
Note the database host (usually localhost), database name, user name and password. The installer asks for them in step 5.
Getting started

Upload the files

Upload the contents of the main_file folder from your download to your web root.

  1. Open the File ManagerLog in to cPanel and open File Manager under Files.
    Opening the File Manager
  2. Go to the right folderFor your main domain this is public_html. For a sub-domain or sub-folder, open that folder instead.
    The public_html folder
  3. Upload and extractClick Upload, choose the zip file, wait for 100%, then right-click it and choose Extract. Make sure the files from main_file (including the hidden .htaccess) end up directly in the folder.
  4. CheckYou should see app, bootstrap, config, public, storage, artisan and the other Laravel folders.
Important
Do not upload the documentation or mobile_app folders to the web root. They are for you, not for visitors.
Getting started

Run the installer

A web installer sets up the application in a few minutes.

  1. StartOpen https://yourdomain.com/install in your browser. This starts the App Installation Process.
    The installer welcome page
  2. Check the serverClick Click to Check Your Server Requirements. Everything should be ticked.
    Server requirements check
  3. Check permissionsThe installer checks the folder permissions. When all are fine, click Click to Configure Your App Environment.
    Folder permissions check
  4. Choose the setup typeSelect Using Form Wizard Setup.
    Choosing the form wizard
  5. Enter the app and database detailsFill in the database host, name, user and password from the previous step, plus an application name and the application URL. Click Click to Install.
    Entering the app and database details
  6. FinishWhen you see Application has been successfully installed, click Click here to exit.
    Installation finished
Getting started

After installation

A few minutes of setup now saves problems later.

  1. Log inOpen your site and sign in with a default account.
  2. Change the passwordsOpen Settings → Password for each default account.
  3. Add the cron lineSee Background work. Without it no-show checks, overstay alerts and the summaries do not run.
  4. Set up emailSettings → Email, then send a test message. Pass emails, host requests and visitor updates all use it.
  5. Fill in the company detailsName, logo, address, currency and date format under Settings → Company.
  6. Create a visit categoryVisitors and the pre-registration form need at least one. See Setting up.
  7. Turn debug offIn .env set APP_ENV=production and APP_DEBUG=false. See Going live.
Getting started

Background work (cron job)

Smart Visitor does some work on its own: it marks missed visits as no-shows, alerts hosts about visitors who stay too long, and emails the daily and weekly summaries. A single cron line makes it all run.

The scheduler

In cPanel open Cron Jobs and add this line to run every minute. Replace the path with the folder that contains artisan.

* * * * * cd /home/youraccount/public_html && php artisan schedule:run >> /dev/null 2>&1
TaskWhenWhat it does
visitors:maintainEvery 15 minutesMarks pending or approved visits from earlier days as No show, and alerts the host (and the mobile inbox) once when a checked-in visitor passes the planned exit time.
visitors:digestEvery day at 08:00Emails the Daily Visitor Digest of yesterday to owners who switched that template on (with an AI-written sentence when AI is connected).
ai:weekly-summaryMondays at 08:00Emails an AI-written summary of the past week to owners who ticked Email me an AI weekly summary on the AI Assistant page.
Note
You can run any task by hand to test it, for example php artisan visitors:maintain.
Getting started

Default logins

These accounts exist right after installation. Use them once and change the passwords straight away.

RoleEmailPassword
Super adminsuperadmin@gmail.com123456
Ownerowner@gmail.com123456
Managermanager@gmail.com123456
Security
Never leave the default passwords on a live site. Turn on two-factor authentication for owners and the super admin.
Visitor management

Roles & menu

What a person sees depends on their role. The menu is grouped by the work you do, and only shows what the role is allowed to use.

The owner's menu

GroupItems
HomeDashboard, Staff Management (Users, Roles, Logged History)
Visitor ManagementVisitor (create, list), Pre Register, Today Visitor, Scan Pass, Calendar, Blacklist
HRAttendance, Leave
Reports & AIReport (visitor, attendance, leave), AI Assistant
CommunicationContact Diary, Notice Board
Website & IntegrationsMy Website, N8N, API Tokens
System ConfigurationVisit Category, Email Notification (message templates)
System SettingsPricing (when plans are used), Settings
The Users page

Users and roles

Staff Management → Users creates people in your organisation (managers, reception, hosts) and gives each one a role. Staff Management → Roles lets you create your own roles and choose exactly which permissions they have, such as manage visitor, create visitor, edit visitor (approve, reject, check in and out), manage attendance or leave status change.

RoleTypical use
Super adminRuns the platform: customers, plans, payments, landing page and system settings.
OwnerThe organisation's administrator. Everything for their own organisation, including the website, API tokens and AI connection.
ManagerDay-to-day work: visitors, approvals, attendance and leave.
Host / staffA person who receives visitors. Without visitor permissions they only see and approve the visitors who chose them as host.
Plan limit
The number of users is limited by the plan's User Limit. Logged History (who signed in, when and from where) is a plan feature.
Visitor management

Setting up your organisation

Four things to do before the first guest arrives.

Company details

Settings → Company holds the name, logo, email, phone and address that appear on passes, emails and the website. Settings → General sets the date and time format and the time zone. Visitor number prefix (for example #VST-000) is put in front of every visitor number, and guards can type the number with or without it.

Visit categories

A category is the purpose of a visit, such as Business meeting, Job interview, Delivery or Contractor. Create them under System Configuration → Visit Category (a title, plus a type of Free or Paid with an optional fee). Every visitor needs a category, and the pre-registration form cannot be used until one exists.

Visit categories

Hosts and reception

Add the people who will receive visitors under Staff Management → Users. A visitor can be linked to a host (a real user), who is then asked to approve the visit, told when the guest arrives and warned about overstays. A free-text Whom to Visit field is available when the person is not a user.

Messages

Turn on the notifications you want under Email Notification and, for SMS or WhatsApp, fill in the Twilio tab in Settings. See Messages & automation.

Visitor management

Visitors

Every visit is one record with a status, a history and a pass. Staff create visitors, guests can pre-register, and hosts approve.

The visitor list

Registering a visitor

Visitor → Create (or New Visitor on the dashboard) asks for first and last name, phone (with country code), email, gender, a photo (the camera is used on phones), category, address, visit date, entry and exit time, room, host and notes.

  • Returning visitors – type the phone number and press Tab: if that person visited before, their details are filled in and you see how many times they came. A banner warns when the number is blacklisted.
  • Suggest category – with AI connected, Suggest category with AI reads the notes and picks the best category.
  • Visitor number – each visitor gets the next number of your organisation, shown with your prefix.

The visit lifecycle

StatusMeaningNext step
PendingRegistered or pre-registered, waiting for the host.Approve, reject or check in
ApprovedThe host agreed. The guest can be let in.Check in or reject
Checked InThe guest is inside. The real arrival time is recorded.Check out
CompletedThe guest left. The real departure time is recorded.-
Rejected / CancelledThe visit will not happen.-
No ShowNobody came. Set automatically for earlier days (needs cron).-

The buttons Approve, Reject, Check In and Check Out appear on the visitor list, the dashboard, the visitor page and in the mobile app, but only when the step is allowed. A blacklisted person cannot be checked in. A checked-in visitor who stays past the planned Exit Time is flagged Overstay.

The visitor page

Opening a visitor shows the pass details, the host, the real check-in and check-out times, how many times the person has visited and whether they are blacklisted. On the right you see the visit history (registered, approved, checked in, notes, with who did it and when), the QR pass, internal notes (visitors never see them) and previous visits.

The visitor page with history

Lists, search and export

  • Visitor list – filter by date range, category, phone, status and host, and search by name, email or phone. The download button exports the filtered list as CSV.
  • Today Visitor – who is expected or inside today.
  • Calendar – all visits on a calendar.
Today's visitors
The visitor calendar
Visitor management

Pre-registration

Let guests register themselves before they arrive. Their host approves, and they receive a pass.

Every organisation has a public page at https://yourdomain.com/pre-register/company-code. Copy the link with the Copy pre-register link button on the dashboard or the copy icon in the header. Guests fill in their name, phone, email, gender, a photo, the date and time, the purpose and who they are visiting.

The public pre-registration page

What happens next

  1. The request arrivesIt appears under Pre Register and on the dashboard as Awaiting approval. The host (or the owner when no host was chosen) gets the Host Notification by email, SMS or WhatsApp, and a message in the mobile app.
  2. The host decidesApprove or reject in the admin, in the mobile app, or with the Approve / Reject links in the message. Those links work without signing in and expire after 3 days.
  3. The guest is toldThe Visitor Status Update message tells the guest the result and links their pass.
  4. The guest arrivesReception scans the QR pass and checks them in. See Passes & scanning.
Pre-registered visitors
Plan
Pre-registration is a plan feature (Visitor Pre Register). The form is protected against bots and limited to 10 submissions a minute per visitor. Blacklisted people and organisations over their monthly visitor limit get a polite refusal.

The same form is also available on your website as the Pre-register page, so guests can register without leaving your own design.

Visitor management

Passes, scanning & exit

Each visitor has a QR pass. Reception scans it to find the visitor in a second.

The pass

  • Show / copy link – the visitor page offers a public pass link, a QR code, Send in Mail, Send in SMS (and WhatsApp when enabled), Print and a thermal printer layout for badges.
  • What the QR holds – a secure link with a random code. Scanning it does not give a stranger any personal data; staff must be signed in to open the visitor.

Scan Pass

Visitor Management → Scan Pass is the reception screen. Scan the QR with the camera (supported by Chrome and Android browsers), use a USB scanner, or type the visitor number, the pass code or the pasted link. The visitor opens with the allowed buttons. It also works in the mobile app.

Visitor exit

The Visitor Exit button on the dashboard takes a visitor number (with or without the prefix) and checks the visitor out. A visitor who is already completed cannot be checked out twice.

Visitor management

Hosts & approvals

Hosts decide who comes in, and everyone sees what happened.

  • Host – choose a host when registering. Hosts without visitor permissions still see their own visitors on their dashboard and can approve or reject them there.
  • History and notes – every step is recorded with the person and the time. Notes are internal.
  • Overstay and no-show – a checked-in visitor past the planned exit time triggers one alert to the host; visits that were never used become No show. Both need the cron job.
  • Guest says "I'm here" – in the guest pass screen of the mobile app a guest can tell the host they have arrived. The host gets a message, at most once every 10 minutes.
Visitor management

Blacklist & limits

Keep unwanted visitors out and control volume.

The blacklist
  • Blacklist – add a person by name, phone and/or email with a reason. Phone numbers are matched by their digits, so +1 (555) 000-1234 equals +15550001234. A blacklisted person cannot be registered, pre-register or be checked in, and visits already waiting for them are rejected.
  • Monthly visitor limit – a plan can limit the visitors an organisation may register per month (0 means unlimited). Over the limit, new visitors and pre-registrations are refused.
Team & communication

Attendance & leave

Staff clock in and out, and request leave. Owners and managers keep track.

Attendance

Staff press Clock In and Clock Out on their dashboard (or in the mobile app); they cannot clock in twice or clock out when not clocked in. The Attendance page lists the records with hours worked; owners can add or correct entries. The owner does not clock in.

Attendance

Leave

An employee requests leave with dates and a reason. The system checks that the end date is not before the start and that it does not overlap another active leave. Requests start as Pending; only people with the leave status change permission can approve or reject (nobody approves their own through the app), and the employee is told in the mobile inbox.

Leave requests
Team & communication

Contact diary & notice board

Two simple tools for everyday communication.

  • Contact Diary – an address book of people and companies you deal with, with an AI helper for writing subjects and messages.
  • Notice Board – announcements for your team (for example a fire drill). Staff see the latest notices on their dashboard.
Dashboards & reports

Dashboards

Each kind of user gets their own start page.

Owner and manager

The owner dashboard
  • Quick actions – New Visitor, Scan Pass, Visitor Exit, Report and Copy pre-register link.
  • Finish setting up – a checklist for new owners that disappears when done.
  • Live numbers – Inside now (with overstays), Pending approval, Today (with the change since yesterday), This month (against your plan limit), average visit duration, pre-registered, total and the last 7 days.
  • Live lists – Inside Now and Awaiting Approval with one-click buttons. They refresh automatically every minute (switch off with Auto-refresh).
  • Needs attention – a banner when visitors are past their exit time or visits wait for approval.
  • AI Insights – a short daily briefing (see AI tools).
  • More – upcoming visits for 7 days, recent activity, today by status, top hosts, visitor history for 7/14/30/90 days, busiest hours and busiest days, and visitors by category.

Hosts and staff

A person without visitor permissions sees Waiting for my approval, My visitors today, upcoming visits, the clock in/out card, their leave and recent attendance, and the notice board.

Super admin

The super admin dashboard

Organisations (active, expired, new this month), income, organisations by plan, plans expiring in 14 days, recent organisations and recent transactions, with an analysis chart of users and payments.

Dashboards & reports

Reports

The Report menu answers the usual questions. Every report has a date range, and most export to CSV.

ReportShowsFor
Visitor ReportTotal visitors, average visit duration, no-show rate, busiest hours, by status, by category and top hosts.Owner, managers
Attendance ReportPer employee: days present, hours worked, average hours a day, shifts not clocked out. Export CSV.Owner (everyone) or a person (themselves)
Leave ReportPer employee: approved days and the number of approved, pending and rejected requests. Export CSV.Owner, approvers
Organizations ReportEvery customer with plan, expiry, status, users, visitors and join date. Export CSV.Super admin
Revenue ReportIncome per month and per plan for the period. Export CSV.Super admin
The visitor report
The attendance report
Tip
CSV files protect against spreadsheet formula tricks: text that starts with =, +, - or @ is prefixed so it cannot run as a formula.
Website & mobile

Your website

Every organisation gets a public website, built from content blocks and managed by the owner under Website & Integrations → My Website. It welcomes guests, explains how a visit works and lets them pre-register.

A company website

Pages and the page editor

A new website starts with five ready-made pages: Home, About us, Visitor guide, Pre-register and Contact, each filled with sections, text and pictures you can edit. Open a page to edit it: every section is a block that you open, change, move up or down, switch off or delete. Click Save and the change is live.

The visitor guide page of a website
The website pages
The page editor
BlockUse it for
Hero bannerThe big headline with buttons and a picture, with an optional pre-registration card beside it.
Quick facts stripOpening hours, reception, parking, ID needed.
Numbered stepsHow a visit works.
Feature cards, Numbers stripWhy register first, key figures.
Text and picture, Photo galleryYour story and pictures of the place.
Checklist / what to bringA ticked list beside a picture: what to bring, house rules.
Visitor pre-registration formThe full pre-registration form, inside your own page.
Customer reviews, Team, LogosQuotes, the people guests will meet, certifications.
Questions and answers, PricingFAQ and plans.
Contact details, Map, Call me back, VideoHow to reach you; a call-back form sends the request to your Enquiries.
Call to actionA coloured banner with one button.

Need a page you deleted, or want a fresh start? Create page offers templates (Home, About us, Visitor guide, Pre-register, Contact, FAQ, Gallery, Team, Reviews, Privacy policy, Terms of use, Blank), and inside any page Start from a ready-made layout loads a template's sections into it.

Pictures

The Picture library (under Settings & brand) takes PNG, JPG, WebP or GIF files up to 2 MB. Blocks that have no picture show a built-in illustration (visitor with badge, QR pass, office, welcome, check-in list, shield, team, house, tools) drawn in your own colours, so a page never looks empty.

Look and feel

Settings & brand sets the name, tagline, logo, main and dark colour, font, corner style, light or dark theme, a floating WhatsApp button, the contact details shown in the top bar and footer, and whether the Login button is shown.

Website settings and brand

The footer has a pre-registration banner, a strip of trust badges, and five columns: about and social links, quick links, For visitors (pre-register, visitor guide, FAQ, contact and your own extra links), Get in touch with a Get directions button, and Before you visit. The banner text, the "before you visit" points, the extra links and the directions button are all editable in Settings & brand.

The pre-registration page of the website

Pre-registration on the website

The Pre-register page shows the same form as /pre-register/company-code. A guest who sends it appears under Pre Register as a pending visit, and the host is notified. The website is visible to everyone once you switch on Website is live; until then only you can preview it.

Enquiries

Call-back requests and messages from the website arrive under Enquiries. Mark them as new, contacted or closed, export them as CSV, or press Create visitor to turn one into a pending visit.

Website enquiries

Search engines

Each page has its own search title and description. The site provides a sitemap.xml and is hidden from search engines while it is switched off.

Website & mobile

Website address & own domain

Guests can reach the website on a standard link, a free sub-domain or your own domain. My Website → Website address manages all three, and the globe icon in the header lists them with copy and open buttons.

The website address page
AddressExampleSetup
Standard linkhttps://yourdomain.com/site/your-nameAlways works.
Free sub-domainyour-name.sites.yourdomain.comThe platform owner sets SITE_BASE_DOMAIN and a wildcard DNS record, see below.
Your own domainvisit.yourcompany.comThe owner adds DNS records and verifies ownership.

Connecting your own domain

  1. Enter the domainOn the Website address page type your domain and press Save domain.
  2. Add the DNS recordsAt your domain provider add a CNAME from your domain to the platform's host name (or an A record to the server address when it is a bare domain), and the TXT record shown on the page. The TXT record proves the domain is yours.
  3. VerifyPress Verify domain. DNS changes can take from minutes to a day. A domain only serves your website after it is verified.
  4. Choose the main addressPick which address is the main one. The standard link then redirects to it.
  5. Add SSLThe domain must also reach the server and have an SSL certificate (for example from your host or Cloudflare).
Safe by design
A domain cannot be claimed by two organisations, the platform's own domain cannot be used, and an unverified domain never shows the website.

Free sub-domains (platform owner)

Set SITE_BASE_DOMAIN=sites.yourdomain.com in .env, create a wildcard DNS record *.sites.yourdomain.com pointing at the server, and make your web server accept any host name for that domain. Optionally set CUSTOM_DOMAIN_IP to the server address so owners are shown the right A record. An unknown sub-domain returns a 404 page.

Website & mobile

Mobile app

One app for everybody, for Android and iPhone. The server tells the app who the person is, and the app shows only what that role may use.

Signs in asBottom barCan do
OwnerHome, Visitors, Scan, Time, MoreEverything below, plus approving the team's leave.
Manager / receptionHome, Visitors, Scan, Time, MoreScan passes, check in and out, walk-ins, roll call, approve and reject.
Host / staffHome, My visitors, Time, MoreSee and approve their own visitors, clock in and out, request leave.
Guest (no account)"I'm a visitor: open my pass" on the sign-in screenSee the QR pass and status, directions, and tell the host "I'm here".

What the app does

  • Sign in – a first step to scan the company's QR code or type its company code (the phone remembers it), then email and password, two-factor code, and a fingerprint or face lock after the app has been away 30 seconds. The company's name and colour are applied after sign-in.
  • Home – inside now, pending approval, today and overstay; lists with one-tap Approve, Reject, Check in and Check out; a shift clock for staff.
  • Visitors – search and filters; details with call, WhatsApp and email buttons, the QR pass, history, previous visits and internal notes.
  • Scan – camera QR scan or a typed code, a clear warning for blacklisted people, check in and out, walk-in registration with a photo and instant check-in, and an inside / expected roll call.
  • Time – a clock in/out timer, hours this week, leave requests and (for approvers) leave decisions.
  • Inbox – new visit requests, visitor arrived, overstay and leave decisions, with an unread badge.
  • Offline start – with no signal the app opens with the last saved profile and home data, clearly marked as saved data.

Mobile App menu on the website

  • Super admin → Mobile Apps – paste the Google Play and App Store links, set a minimum app version, write a maintenance message (the app stops working while it is filled) and choose the default colour and welcome text. A table lists every company with its code, users, registered devices and last use, and a switch turns the app off for one company (its people are signed out).
  • Owner and staff → Mobile App – the company QR code, company code, copy link and a print sheet to hang at reception. Owners also edit the App branding: name, colour, welcome text and support phone or email shown in the app. The logo comes from Settings.
  • Public join page – the QR code opens a page with the company name, code and the store buttons.
  • Company website – a "Get our app" section with store buttons, a QR code and the company code. It is the Mobile app block, already on the home page of every new website; add it to any page, or create a ready-made Get our app page from the page templates. It is not shown on the platform landing page.
  • App API – GET /api/v1/mobile/config?version=1.0.0&company_code=... returns the maintenance message, whether an update is required, the store links and the company look, before sign-in.

Security

  • The sign-in token is kept in the phone's secure storage, works only for the mobile API, and ends by itself after 60 days without use (MOBILE_TOKEN_IDLE_DAYS; 0 means never). Signing out removes it on the server.
  • Nothing about people or visitors stays on the phone after signing out.
  • The server checks the same permissions as the website on every call, so a host only ever receives their own visitors, and no one reaches another organisation's data.
  • Guests use the pass code only; no phone number, email or notes are returned.

Push notifications (optional)

Inbox messages work out of the box and refresh every minute. For push messages while the app is closed you need your own Firebase project, see Build & publish the app.

Website & mobile

Build & publish the app

The app is a Flutter project in the mobile_app folder of your download. It talks to your server's API at /api/v1/mobile.

The folder layout

mobile_app/
  lib/        the app: api/ (server calls), state/ (sign-in, lock), screens/, widgets/, util/
  test/       70 tests, plus test/e2e that runs against a real server
  android/ ios/   the platform projects
  README.md   the developer guide

Run and build

# one-time: install Flutter (https://flutter.dev) and add it to your PATH
cd mobile_app
flutter pub get
flutter run --dart-define=SERVER_URL=https://visitors.example.com

# release builds
flutter build apk --release --dart-define=SERVER_URL=https://visitors.example.com
flutter build ipa --dart-define=SERVER_URL=https://visitors.example.com   # needs a Mac and an Apple account

The server address is only the first value shown: it can be typed on the sign-in screen and is remembered. After changing the server, run php artisan migrate (it adds the phone and inbox tables).

Before publishing

  1. Use httpsRelease builds only accept https:// servers. (Plain http:// works in debug builds for testing on your own computer.)
  2. Set your own app idThe default is com.smartvisitor.smart_visitor. Change it in android/app/build.gradle* and in the Xcode project.
  3. Icon, name and signingReplace the launcher icon, set the app name, and create your Android keystore / iOS signing certificate.
  4. TestRun flutter test, and the end-to-end test against your server: E2E_SERVER=https://yourserver flutter test test/e2e.
  5. UploadPublish the .aab (Google Play) or the archive (App Store).

Switching on push

  1. Create a Firebase projectAdd the Android (and iOS) app and download google-services.json / GoogleService-Info.plist.
  2. ServerIn .env set FCM_PROJECT_ID and FCM_CREDENTIALS (the full path of the service-account JSON file). The server then sends a push for every inbox message to the phones registered by the app, and removes phones that no longer exist.
  3. AppAdd firebase_core and firebase_messaging, initialise Firebase at start, implement the small PushService (it returns the device token) and pass it to AuthController. The app then registers the phone after every sign-in and removes it on sign-out.
Why it is off by default
The Android build fails without your own Firebase file, so push is left for you to switch on. Everything else works without it.
AI & automation

AI tools

Each owner connects the AI service they prefer with their own key. The AI features are included by plan, with a daily limit.

Connect your AI service (owner)

  1. Open the tabSettings → AI Settings (owners only).
  2. Choose the serviceGPT, Anthropic (Claude), Google (Gemini), Mistral, DeepSeek, Groq, OpenRouter, or any service with a compatible address. Add a model name if you do not want the default.
  3. Paste your keyThe key is stored encrypted, is never shown again, and is only used for your organisation. The super admin does not use AI and cannot see owners' keys.
  4. Test and switch onPress Test connection, tick Switch AI On and save.
AI Settings

AI and plans

A plan has an AI Support switch and an AI requests per day limit (0 means unlimited). When the plan has no AI, or the daily limit is reached, the AI features stay off. The AI Assistant page shows how many requests you have used today.

AI Assistant

Ask in plain words: "Who is inside now?", "Which visits are waiting for approval?", "How many visitors came last week?", "How often has Ann visited?". The assistant only reads your organisation's data through fixed tools.

  • It never changes anything by itself. Ask it to "Approve visitor 12" and it shows a Confirm button. The confirmation works once, for the person who asked, for 10 minutes, and only if they may edit visitors.
  • Visitor-typed text is treated as data, never as instructions.
The AI Assistant page

More AI features

  • AI Insights on the dashboard – a headline, highlights, things that need attention and a suggestion, written from today's and the week's numbers. It is saved for 30 minutes so opening the dashboard does not use your daily limit; Refresh asks again.
  • Suggest category – on the visitor form, from the notes.
  • Weekly summary – an opt-in email every Monday (needs cron).
  • Content generator – the AI Content Generator button in forms such as Visitor, Contact, Notice, Leave, Visit Category and Email Notification writes text from a short brief.
AI & automation

Messages & automation

Smart Visitor tells people what is happening, and can call your own automations.

Email, SMS and WhatsApp templates

System Configuration → Email Notification lists the message templates. Each has a subject, an email body, an SMS/WhatsApp text and its own switches for email, SMS and WhatsApp. Edit them with the short codes shown (for example {visitor_name}, {visitor_date}, {host_name}).

Message templates
TemplateSent toWhen
New UserThe new userA staff account is created.
New VisitorThe visitorA visit is registered or pre-registered.
Host NotificationThe hostA new request (with Approve / Reject links), the guest arrived, an overstay.
Visitor Status UpdateThe visitorThe visit is approved or rejected.
Get Pass SendThe visitorYou press send on the pass (mail or SMS).
Daily Visitor DigestThe ownerEvery morning, when switched on.
Defaults
New templates are switched off until you turn on the channels you want. SMS and WhatsApp use Twilio: fill in the SID, token, sender number and WhatsApp number in Settings → twilio Settings. Email uses the SMTP details of Settings → Email (each organisation has its own).

Queue

Messages are sent straight away by default (QUEUE_CONNECTION=sync). On busy installations switch to database and run a queue worker.

N8N and webhooks

Website & Integrations → N8N connects events to your own n8n (or any webhook) flows. Add a URL for an event and choose the method. The payload contains the visitor, the host and your company details.

EventFires when
create_userA user is created.
new_visitorA visitor is registered or pre-registered (also from the website, the API and the app).
send_get_passA pass is sent.
visitor_approved, visitor_rejectedThe host decides.
visitor_checked_in, visitor_checked_outA guest arrives or leaves.
visitor_overstayA guest passes the planned exit time.

N8N is a plan feature. If a webhook is slow or fails, the visit still works; the problem is only logged.

Administration

Settings & integrations

Settings is where an owner (and the super admin) configure the system. Each tab saves on its own.

TabWhat it holdsWho
User Profile, PasswordYour name, picture and password. Account deletion.Everyone
GeneralTime zone, date and time format and, for the super admin, the landing page, the pricing feature, the registration page and owner email verification.Owner, super admin
CompanyCompany name, logo, email, phone, address, currency and the visitor number prefix.Owner
EmailSMTP server details, with a test message. Used for every email an organisation sends.Owner, super admin
2 Factors AuthenticationSwitch on a second sign-in step with an authenticator app (scan the QR code).Everyone
twilio SettingsSID, token, sender number and WhatsApp number for SMS and WhatsApp.Owner
AI SettingsThe AI service, model and key. See AI tools.Owner
Site SEO, Google reCAPTCHA, PaymentSearch-engine details of the landing page, bot protection on sign-in, and the payment gateways for plans.Super admin
The Settings page

Sign-in security

  • Two-factor – works on the website and in the mobile app.
  • Logged history – Staff Management → Logged History records every sign-in with the browser, device and place (a plan feature).
  • Inactive users – an inactive account, or one over the plan's user limit, cannot sign in.
Administration

Languages

Every person picks their language with the language icon in the header.

ArabicDanishDutchEnglishFrenchGermanItalianJapanesePolishPortugueseRussianSpanish

Translations live in the lang folder, one JSON file per language (for example lang/german.json). To add a language, copy english.json, rename it, translate the values and it appears in the menu. The newest screens (dashboard, website, AI, mobile) show English until their text is added to a language file.

Upgrades
Upgrading replaces the language files. Keep a copy of any translation you changed.
Administration

API

Two REST APIs: one for your own tools, one for the mobile app. Both return JSON.

API for your own tools

An owner creates a token under Website & Integrations → API Tokens (the token is shown once, so copy it) and sends it as Authorization: Bearer TOKEN. Everything is limited to that owner's organisation and to 60 calls a minute.

API tokens
CallDoes
GET /api/v1/visitorsLists visitors (filters: status, category, host_user_id, date, phone_number; 25 per page).
GET /api/v1/visitors/{number}One visitor, by the number shown on the pass.
POST /api/v1/visitorsRegisters a visitor (blacklist and monthly limit apply; notifications and webhooks fire).
POST /api/v1/visitors/{number}/approve reject check-in check-outMoves the visitor along the lifecycle. A step that is not allowed returns 409.
curl -H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json" \
  https://yourdomain.com/api/v1/visitors?status=checked_in

API for the mobile app

The app signs in with POST /api/v1/mobile/auth/login (email, password and an optional company code; a two-factor code is sent to /auth/two-factor) and then calls /api/v1/mobile/... for the home screen, visitors, scanning, walk-ins, approvals, attendance, leave, the inbox and the guest pass. Phone tokens and tool tokens are separate: one cannot be used for the other.

Developers
The Laravel tests tests/Feature/MobileApiTest.php and the app's test/e2e describe the API behaviour in detail.
Administration

SaaS administration

Run Smart Visitor as a service for many organisations. Switch on Pricing Feature in the super admin's Settings → General to use plans.

Customers
  • Customers – the Customers page lists every organisation (owner), lets you activate or deactivate it, see its usage (visitors, users, AI) and sign in as the owner. Owners can register themselves when the registration page is on.
  • Plans – Pricing holds the packages: price, interval (monthly, quarterly, yearly, unlimited), user limit, visitors per month, and the add-ons Visitor Pre Register, Logged History, AI Support (with a daily request limit) and N8N. When a plan ends the owner is moved to the basic plan.
  • Payments – organisations pay by Stripe, PayPal, Flutterwave, Paystack, Razorpay or bank transfer (approved by the super admin). Pricing → Transactions lists them. Turn each gateway on and add its keys under Settings → Payment.
  • Coupons – discounts with a validity and a usage limit; Coupons → History shows where they were used.
  • Landing page (CMS) – System Settings → CMS edits the public home page, extra pages (terms, privacy), the FAQ, the footer and the sign-in page. Visitors who are not signed in see the landing page at your main address when it is switched on.
  • Reports – Report → Organizations and Revenue, with CSV export.
Plans
The revenue report
Operations

Upgrading

Always back up first.

  1. Back upDownload your .env file, .htaccess and the storage folder, and export the database.
  2. Replace the filesUpload and replace everything with the contents of main_file from the new version.
  3. RestorePut your .env, .htaccess and storage back.
  4. Run the updateLog in and follow the update wizard, or run php artisan migrate on the command line.
  5. Clear the cachesRun php artisan optimize:clear and php artisan permission:cache-reset (or delete the files in bootstrap/cache and storage/framework/views and clear the cache). The second one makes new permissions, such as manage ai settings, visible straight away.
Language files
Upgrading overwrites the language files in lang. Keep a copy of any translation you changed. Changes to core files are also lost, so keep your own customisations separate.
Disclaimer
We cannot recover data lost during a manual update. Follow the backup steps carefully.
Operations

Going live checklist

Before real guests use it.

  • APP_ENV=production, APP_DEBUG=false and the correct APP_URL (with https).
  • Change all default passwords and turn on two-factor for owners.
  • Add the cron line.
  • Set up SMTP (and Twilio if you use SMS or WhatsApp) and send a test message; set up the payment gateways in live mode if you sell plans.
  • Install an SSL certificate (also on every custom website domain). The mobile app and the scan page camera need https.
  • Create at least one visit category and one host.
  • Make sure the storage and bootstrap/cache folders are writable by the web server user.
  • Take regular database backups.
  • Optional: connect Firebase for push, set SITE_BASE_DOMAIN for free sub-domains, switch the queue to database on busy sites.
Operations

Troubleshooting & FAQ

Errors and blank pages

ProblemFix
A 500 error after an updateThe database is behind the files. Run php artisan migrate, then php artisan optimize:clear. The details are in storage/logs/laravel.log.
"Permission denied" for a file in storage/framework/views, or nothing in laravel.logFiles were created by another user (for example by running artisan as root). Give the web server user ownership: chown -R www-data:www-data storage bootstrap/cache (use your server's web user), then delete the files in storage/framework/views.
A new menu item or tab is missing (for example AI Settings)Permissions are cached. Run php artisan permission:cache-reset.
Styles or pictures do not loadCheck APP_URL and that .htaccess was uploaded (it is hidden).

Visitors and the website

ProblemFix
The pre-registration form says it is not availableCreate a visit category under Visit Category. Also check that the plan includes Visitor Pre Register and that the monthly visitor limit is not reached.
Nobody gets emailsCheck Settings → Email and send the test message. Make sure the template's Email switch is on under Email Notification.
SMS or WhatsApp is not sentFill in the Twilio tab, switch the channel on in the template, and use phone numbers with the country code.
The scan page has no cameraBrowsers allow the camera only on https and only in Chrome / Android browsers. Use a USB scanner, type the code, or use the mobile app.
My own domain does not verifyDNS can take up to a day. Check the TXT record name and value exactly as shown (no extra quotes or spaces), and that the domain is not already used by another website.
The free sub-domain shows a 404The wildcard DNS record or the web server's wildcard host is missing, or SITE_BASE_DOMAIN is not set.
The website shows "not found"Switch on Website is live and make sure the page is enabled.

Mobile app

ProblemFix
"Cannot reach the server"Check the server address (https in release builds) and the phone's connection. On the Android emulator your computer is 10.0.2.2.
Sign-in is refusedThe account must be active and email-verified. If you typed a company code, it must be your organisation's code. The super admin cannot use the app.
"Your session has ended"The sign-in was unused for 60 days or was signed out elsewhere. Sign in again.
No push messagesPush needs Firebase (see Build & publish). The Inbox always works.

AI

ProblemFix
"AI is not available"Connect your service under Settings → AI Settings, switch it on, and check that your plan includes AI and the daily limit is not used up.
The connection test failsCheck the key, the model name and (for a custom service) the address, which must start with https://.
Operations

Environment variables

Set in the .env file. Run php artisan optimize:clear after changing it.

KeyDefaultPurpose
APP_ENV / APP_DEBUG / APP_URL-Environment, debug output and the public address.
DB_*-Database host, name, user and password (set by the installer).
QUEUE_CONNECTIONsyncUse database to send messages in the background.
SITE_BASE_DOMAINemptyBase domain for free website sub-domains (your-name.SITE_BASE_DOMAIN). Needs wildcard DNS.
CUSTOM_DOMAIN_IPemptyServer address shown to owners who connect a bare domain (A record).
MOBILE_TOKEN_IDLE_DAYS60Days of non-use after which a phone sign-in ends (0 = never).
FCM_PROJECT_ID, FCM_CREDENTIALSemptyFirebase project id and the full path of the service-account JSON, for mobile push messages.

Email (SMTP), Twilio, AI keys and payment keys are saved per organisation in Settings, not in .env.

Operations

Change log

What changed, newest first.

Version 2.0 – 22 November 2026

  • One mobile app for Android and iPhone: owner, manager, reception, host and guest pass, with scanning, walk-ins, approvals, attendance, leave, inbox, a security lock and offline start.
  • Visitor lifecycle with approve, reject, check in and check out, real arrival and departure times, history and notes, overstay and no-show handling.
  • Scannable QR passes, a Scan Pass page, host approval links in messages, a blacklist, a monthly visitor limit per plan, returning-visitor lookup, filters and CSV export.
  • Company websites with a block editor, ready-made pages and pictures, a full pre-registration page, a customisable footer, and free sub-domains and verified own domains.
  • AI tools working with the service each owner chooses (GPT, Claude, Gemini, Mistral and more), included by plan with a daily limit: an assistant that asks for confirmation, a dashboard briefing, category suggestions and weekly summaries.
  • New dashboards for owner, host and super admin; reports for visitors, attendance, leave, organisations and revenue.
  • New message templates (host notification, status update, daily digest), more n8n events and a REST API with tokens.
  • Security fixes: every record is now checked against the signed-in organisation, public forms are rate-limited and bot-protected, and the QR image in passes works.
  • Menu regrouped by workflow, with an HR group.
  • Mobile App menu: super admin console (store links, minimum version, maintenance, per-company switch), owner page with QR code, company code and branding, public join page, and a Mobile app block and page template for each owner's website.
Operations

Support

Stuck? We are happy to help.

Open a ticket at support.smartwebinfotech.com. Please include your purchase code, the page you were on, what you expected and what happened, and, if you can, the last lines of storage/logs/laravel.log.