FoodPilot
Complete multi-platform restaurant management system. One Laravel application powers the admin panel, the customer ordering website and the REST API, plus Flutter customer & rider apps for Android & iOS.
Introduction
FoodPilot is a complete multi-platform restaurant management system. It ships as three projects โ one Laravel application (admin panel + customer website + API) and two Flutter apps:
Admin Panel
Laravel back-office with POS, KDS, reservations, reports and the REST API.
Customer Website
Built-in themed storefront for ordering, table booking and order tracking โ served by the same Laravel app.
Customer Mobile App
Flutter app for Android & iOS โ full ordering experience for customers.
Rider App
Flutter app for riders to claim orders, deliver them and collect cash on delivery.
The admin panel and customer website run inside the same Laravel installation, so there is no separate Node.js app to host. Both Flutter apps talk to that installation through its REST API. Install Laravel first, then configure the mobile apps.
System Architecture
One Laravel installation on one domain serves everything web-based. The mobile apps connect to its /api endpoints.
/ Customer website ยท /admin Admin panel ยท /api REST APIWhat's Included
- โ Laravel admin panel + REST API source code
- โ Built-in customer website with switchable themes
- โ Flutter customer app (Android + iOS)
- โ Flutter rider app (Android + iOS)
- โ Postman API collection
- โ Documentation
Tech Stack
- โข PHP 8.2+ / Laravel 12 / Livewire 4
- โข Tailwind CSS (assets pre-built โ no Node.js needed on the server)
- โข Flutter 3.x / Dart
- โข MySQL 5.7+ / MariaDB
Payment Gateway Settings
Configure PayPal, Paymob, Stripe, and Razorpay credentials from the admin panel. Go to Settings โ Payment Settings โ Payment Gateway Settings, choose the gateway tab, enter the credentials, then save the settings.
General Configuration
- โข Enable the gateway to make it available at checkout.
- โข Turn on Sandbox / Test Mode while testing. No real charges are created while sandbox mode is enabled.
- โข Upload a gateway icon in JPG, PNG, WEBP, or SVG format. Maximum file size: 2MB.
- โข Add a customer-facing description that explains how the payment method works.
API Credentials
Copy keys and secrets from each provider dashboard. Gateway credentials are encrypted at rest after saving.
Use test keys for verification.
Use live keys before accepting real orders.
PayPal
Enable PayPal and enter sandbox plus live application credentials.
If your currency is not available in PayPal, FoodPilot converts your currency value to USD using your configured exchange rate.
Sandbox / Test
- Client ID: PayPal sandbox client ID
- Client Secret: PayPal sandbox client secret
- App ID: PayPal sandbox merchant app ID
Live / Production
- Client ID: PayPal live client ID
- Client Secret: PayPal live client secret
- App ID: PayPal live app ID
Paymob
Accept card and wallet payments through Paymob.
Paymob charges the order amount in your configured currency. Enter both test and production credentials before switching to live mode.
Sandbox / Test
- API Key
- Secret Key
- Public Key
- Integration ID
- Iframe ID
Live / Production
- API Key
- Secret Key
- Public Key
- Integration ID
- Iframe ID
Common
- HMAC Secret
Stripe
Enable Stripe and enter keys from your Stripe Dashboard.
Use sandbox mode with Stripe test keys while verifying checkout. Disable sandbox mode and save live keys before processing real payments.
Required Fields
- Public Key
- Secret Key
Description
Add a short description shown to customers at checkout.
Razorpay
Enable Razorpay and enter API credentials from the Razorpay Dashboard.
Required Fields
- API Key
- API Secret
Security
Saved Razorpay credentials are encrypted at rest.
Server Requirements (VPS Configuration)
Minimum recommended specs for running FoodPilot (Laravel admin panel, customer website, API + MySQL) on a VPS.
CPU
2 vCPUs minimum. 4 vCPUs recommended for production.
RAM
2 GB minimum. 4 GB recommended.
OS
Ubuntu 22.04 LTS (recommended) or Debian 12.
Important Server Documentation
Follow these notes when the application shows a server error or emails / notifications are not being sent.
500 Internal Server Error โ Common Fix
If you see a 500 Internal Server Error, the most common cause is a missing .env file or missing Laravel app key. Run these commands inside your Laravel project directory:
Then update .env with your database credentials before continuing.
One Domain โ Three Entry Points
The customer website, admin panel and API all run from the same Laravel installation. Point your domain's document root at Laravel's public/ folder and you get:
No separate subdomain, Node.js server or CORS configuration is required.
Emails Not Sending? Run the Queue Worker
Contact-form emails and admin notifications are queued (QUEUE_CONNECTION=database). They are only delivered while a queue worker is running. See Queue Worker & Cron (VPS) or Cron Job (cPanel).
Install & Configure Nginx
1. Install Nginx
sudo apt update
sudo apt install -y nginx
sudo systemctl enable nginx
sudo systemctl start nginx
2. Virtual host โ /etc/nginx/sites-available/yourdomain.com
One server block serves the customer website, the admin panel (/admin) and the API (/api).
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
root /var/www/foodpilot/public;
index index.php;
client_max_body_size 20M;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
}
location ~ /\.ht { deny all; }
}
3. Enable the site & reload
sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
Install & Configure MySQL
1. Install MySQL 8
sudo apt install -y mysql-server
sudo systemctl enable mysql
sudo mysql_secure_installation
2. Create database & user
sudo mysql -u root -p
CREATE DATABASE foodpilot CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'fpuser'@'localhost' IDENTIFIED BY 'StrongPassword!';
GRANT ALL PRIVILEGES ON foodpilot.* TO 'fpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
3. Update Laravel .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=foodpilot
DB_USERNAME=fpuser
DB_PASSWORD=StrongPassword!
Install PHP 8.3 & Extensions
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php8.3 php8.3-fpm php8.3-mysql php8.3-mbstring \
php8.3-xml php8.3-bcmath php8.3-curl php8.3-zip php8.3-gd php8.3-intl
sudo systemctl enable php8.3-fpm
sudo systemctl start php8.3-fpm
php -v should show PHP 8.3.x
Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer --version
Then inside your Laravel directory:
cd /var/www/foodpilot
composer install --optimize-autoloader --no-dev
Queue Worker & Cron (Supervisor)
Queued jobs (contact-form emails, admin notifications) are processed by php artisan queue:work. Supervisor keeps it running in the background and restarts it on crash or reboot.
1. Install Supervisor
sudo apt install -y supervisor
2. Create /etc/supervisor/conf.d/foodpilot-worker.conf
[program:foodpilot-worker]
command=php /var/www/foodpilot/artisan queue:work --sleep=3 --tries=3 --max-time=3600
user=www-data
autostart=true
autorestart=true
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/foodpilot/storage/logs/worker.log
stopwaitsecs=3600
3. Start the worker
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start foodpilot-worker:*
4. Laravel scheduler (recommended) โ sudo crontab -u www-data -e
* * * * * cd /var/www/foodpilot && php artisan schedule:run >> /dev/null 2>&1
php artisan queue:restart so the worker picks up the changes.
Domain & DNS Configuration
Point your domain to the VPS IP via your registrar's DNS panel (GoDaddy, Namecheap, Cloudflare, etc.).
| Type | Name / Host | Value | TTL |
|---|---|---|---|
| A | @ | YOUR_VPS_IP | Auto |
| A | www | YOUR_VPS_IP | Auto |
dig yourdomain.com or dnschecker.org.
SSL Setup with Certbot (HTTPS)
Use Let's Encrypt via Certbot to get free SSL certificates for all domains.
1. Install Certbot
sudo apt install -y certbot python3-certbot-nginx
2. Obtain certificates
# One certificate covers the website, /admin and /api
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
3. Certbot patches Nginx automatically. Verify HTTPS works:
sudo nginx -t && sudo systemctl reload nginx
curl -I https://yourdomain.com
curl -I https://yourdomain.com/api/health
4. Auto-renewal (already set up by Certbot, verify with):
sudo certbot renew --dry-run
.env โ APP_URL=https://yourdomain.com, run php artisan config:cache, and use https://yourdomain.com/api as the base URL in both Flutter apps.
Shared Hosting Requirements
Before deploying on shared hosting, confirm your cPanel environment supports the following. Contact your hosting provider if any item is missing.
โก Laravel (Admin API)
- โ PHP 8.2+ (8.3 recommended) via MultiPHP or PHP Selector
- โ MySQL 5.7+ or MariaDB
- โ Composer (SSH Terminal)
- โ SSH Terminal access (cPanel โ Terminal)
- โ Addon Domain / Subdomain creation
- โ File Manager or FTP access
- โ AutoSSL / Let's Encrypt SSL
๐ Customer Website
Nothing extra to install. The customer website is part of the Laravel app and its CSS/JS assets are pre-built, so shared hosting without Node.js works.
- โ Cron Jobs (cPanel โ Cron Jobs) for the queue worker
- โ SMTP mailbox for order & contact emails
Laravel Setup on cPanel
Deploy the Laravel admin API on shared hosting step by step.
Point Your Domain's Document Root to public/
In cPanel โ Domains, edit yourdomain.com (or add it as an Addon Domain) and set its Document Root to the Laravel project's public/ folder:
/home/yourusername/foodpilot/public
This ensures only the public/ directory is web-accessible. The rest of the Laravel app stays outside the web root.
Upload Project Files
Upload the Laravel project ZIP via cPanel โ File Manager into /home/yourusername/foodpilot/, then extract it:
# Via cPanel Terminal (SSH) cd ~/foodpilot unzip laravel-admin.zip -d . rm laravel-admin.zip
Alternatively use FTP (FileZilla) to upload all files directly.
Set PHP Version to 8.3
In cPanel โ MultiPHP Manager (or PHP Selector), select yourdomain.com and set PHP to 8.3.
Also enable these PHP extensions: pdo_mysql, mbstring, xml, curl, zip, gd, bcmath, intl.
Create MySQL Database
Go to cPanel โ MySQL Databases:
- Create database:
yourusername_fpAdmin - Create user:
yourusername_fpUserwith a strong password - Add user to database with All Privileges
Configure .env
In cPanel โ File Manager, rename .env.example โ .env and edit it:
# App APP_NAME=FoodPilot APP_ENV=production APP_DEBUG=false APP_URL=https://yourdomain.com # Database DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=yourusername_fpAdmin DB_USERNAME=yourusername_fpUser DB_PASSWORD=StrongPassword! # Mail MAIL_MAILER=smtp MAIL_HOST=mail.yourdomain.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=your_email_password [email protected] # Queue (keep as database) QUEUE_CONNECTION=database
Install Composer & Run Artisan
Open cPanel โ Terminal and run:
cd ~/foodpilot # Install Composer if not available globally curl -sS https://getcomposer.org/installer | php php composer.phar install --optimize-autoloader --no-dev php artisan key:generate php artisan migrate --force php artisan db:seed --force php artisan storage:link php artisan config:cache php artisan route:cache php artisan optimize
Set Folder Permissions & Enable SSL
chmod -R 755 storage bootstrap/cache
Enable SSL: cPanel โ SSL/TLS โ AutoSSL (free) or install Let's Encrypt via the SSL/TLS Status panel for yourdomain.com.
Add a Cron Job for the Queue
Shared hosting can't keep a worker running permanently, so process the queue every minute. In cPanel โ Cron Jobs, choose Once Per Minute and add:
cd /home/yourusername/foodpilot && php artisan queue:work --stop-when-empty --max-time=55 >> /dev/null 2>&1
If php isn't found, use the full path your host shows under MultiPHP, e.g. /usr/local/bin/ea-php83. Without this cron, contact-form emails and notifications stay in the queue.
Test the Installation
Visit the admin panel in your browser:
The customer website is live at https://yourdomain.com. Test the API health endpoint:
curl -I https://yourdomain.com/api/health
Server Requirements
Verify your hosting environment before installation.
PHP & Extensions
- โ PHP 8.2 or higher (8.3 recommended)
- โ OpenSSL
- โ PDO Extension
- โ Mbstring Extension
- โ Tokenizer Extension
- โ XML Extension
- โ JSON Extension
- โ GD / Imagick
- โ Fileinfo Extension
- โ CURL Extension
Database & Server
- โ MySQL 5.7+ or MariaDB
- โ Composer 2.x
- โ Apache or Nginx
- โ SSL Certificate (HTTPS)
- โ 512MB+ RAM
- โ SSH or Terminal access
Installation Guide
Deploy the Laravel admin panel on your VPS step by step.
Download from Envato
Log in to your CodeCanyon account โ Downloads โ FoodPilot โ Download All Files & Documentation. Extract the ZIP on your local machine.
Point Your Domain to the Server
In your domain registrar / DNS panel, add A records pointing your domain to your VPS IP. The customer website, admin panel and API all share this one domain. If you already did this in the Server Setup section, skip ahead.
| Type | Name | Value |
|---|---|---|
| A | @ | YOUR_VPS_IP |
| A | www | YOUR_VPS_IP |
Upload Project to Server
Choose one of the two methods:
Option A โ Git (recommended)
ssh user@YOUR_VPS_IP sudo mkdir -p /var/www/foodpilot cd /var/www/foodpilot sudo git clone https://github.com/your-repo/foodpilot-admin.git . sudo chown -R $USER:$USER /var/www/foodpilot
Option B โ FTP / File Manager
Upload laravel-admin.zip into /var/www/foodpilot via your FTP client or File Manager, then extract it:
cd /var/www/foodpilot sudo unzip laravel-admin.zip -d . sudo rm laravel-admin.zip
Create MySQL Database
Via SSH, connect to MySQL and create a dedicated database and user:
sudo mysql -u root -p CREATE DATABASE foodpilot_admin CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'fp_admin'@'localhost' IDENTIFIED BY 'StrongPassword!'; GRANT ALL PRIVILEGES ON foodpilot_admin.* TO 'fp_admin'@'localhost'; FLUSH PRIVILEGES; EXIT;
Save these credentials โ you'll need them in the next step.
Configure .env File
cd /var/www/foodpilot cp .env.example .env nano .env
Fill in the values below:
# App APP_NAME=FoodPilot APP_ENV=production APP_DEBUG=false APP_URL=https://yourdomain.com # Database DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=foodpilot_admin DB_USERNAME=fp_admin DB_PASSWORD=StrongPassword! # Mail MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=587 MAIL_USERNAME=your_email MAIL_PASSWORD=your_password [email protected] # Queue โ requires a running worker (see Queue Worker & Cron) QUEUE_CONNECTION=database
Visit the installer URL in your browser and follow the on-screen steps โ no SSH required.
Before installing, copy .env.example to .env.
Installer Steps Preview
Click any image to enlarge. Place screenshots in image/installer/step1.png โฆ step4.png.
Run Artisan Commands
SSH into your server and run from the project root:
cd /var/www/foodpilot composer install --optimize-autoloader --no-dev php artisan key:generate php artisan migrate --force php artisan db:seed --force php artisan storage:link php artisan config:cache php artisan route:cache php artisan optimize
Set Folder Permissions
chmod -R 775 storage bootstrap/cache chown -R www-data:www-data storage bootstrap/cache
Test the Installation
Open your browser and visit the admin panel. You should see the login page.
The customer website loads at the domain root:
Or test the API health endpoint โ should return 200 OK:
curl -I https://yourdomain.com/api/health
Before going live, verify:
APP_DEBUG=falseโ prevents exposing stack traces to users- Storage symlink exists:
ls -la public/storage - Folder permissions set correctly on
storage/andbootstrap/cache/ - SSL certificate active โ Nginx should redirect HTTP โ HTTPS
- Queue worker running โ
sudo supervisorctl status(VPS) or cron job added (cPanel) - Sign in as
[email protected]and change its email and password right away (the default password is12345678) - Change the default demo account passwords, or delete those users, in Users
Admin Panel Features
A complete Laravel-powered back-office to run the whole restaurant โ orders from every channel, an in-store POS, a kitchen display, table reservations, QR menus, delivery riders and the customer website, all from one login.
Analytics Dashboard
A live snapshot of the business โ sales, order volume and the latest activity the moment you log in.
- โ Sales and order totals at a glance
- โ Orders broken down by type: dine-in, takeout and delivery
- โ Recent orders with quick links to details
- โ Top-selling menu items
- โ Role-aware: kitchen staff and delivery riders see only what they need
Reports with PDF Export
Four filterable reports to understand sales, payments, menu performance and your user base.
- โ Order overview โ filter by date, status, order type and payment method
- โ Payment overview โ by method and payment status
- โ Menu item overview โ by category, food type and availability
- โ User overview โ by role, status and gender
- โ Download any report as PDF
Menu Management
Build a rich catalog with photos, variants and add-ons that every channel โ website, POS, QR menu and mobile app โ reads from.
- โ Items with multiple images, description and price
- โ Size variants and paid add-ons per item
- โ Categories, food types (veg / non-veg / diet) and tags
- โ Toggle availability instantly
- โ Homepage sliders managed from the admin
Order Management
Every order from the website, mobile app, POS and QR menu lands in one list with a configurable status pipeline.
- โ Custom order statuses โ Pending โ Confirmed โ Preparing โ Ready โ Out for Delivery โ Delivered
- โ Assign delivery orders to a rider
- โ Record cash or card payments against an order
- โ Print or download PDF invoices with your own prefix and number format
- โ Email to the customer on new orders and status changes
Point of Sale (POS)
A fast in-store terminal for walk-in, phone and table orders โ built into the admin panel, no extra hardware software needed.
- โ Search items and add variants, add-ons and special instructions
- โ Dine-in (pick a table), takeout or delivery (pick a delivery area)
- โ Find an existing customer by phone or quick-add a new one
- โ Discount, tax, delivery fee and change-due calculation
- โ Pay now or pay later, and edit an open order afterwards
Kitchen Display System (KDS)
Replace paper tickets with a live kitchen screen โ orders appear automatically and move through prep with one tap.
- โ Live order tickets with auto-refresh
- โ Columns follow your kitchen order statuses
- โ Move a ticket forward (Mark ready) or back a step
- โ Elapsed-time counter with overtime highlight
- โ Filter by dine-in, takeout or delivery and search by order number
Table Reservations
Accept bookings from the website and the API, then seat guests from a single screen.
- โ Tables with seating capacity and status
- โ Live availability check by date, time and party size
- โ Statuses: Pending, Confirmed, Seated, Completed, Cancelled, No-show
- โ Assign a table to each booking
- โ Customers see their bookings in their account and can cancel
QR Code Generator
Generate branded QR codes that open your digital menu โ print them for tables, flyers or the shop window.
- โ QR for the digital menu, your restaurant URL or Wi-Fi access
- โ Custom foreground / background colours and centre logo
- โ Sizes from 128 to 1024 px and adjustable error correction
- โ Download as PNG or SVG
- โ Bulk-generate codes for all tables
Users, Roles & Permissions
Six ready-made roles plus unlimited custom ones, with per-screen permissions and a full audit trail.
- โ Built-in roles: Admin, Manager, Kitchen Staff, Waiter, Customer, Rider
- โ Toggle individual permissions per role
- โ Profiles with order and reservation history tabs
- โ Separate management for customers and delivery riders
- โ Activity log of every create, update and delete
Settings & Localization
Configure the restaurant once and every channel follows โ branding, payments, invoices, notifications and languages.
- โ Restaurant info, timezone, brand logo and colours
- โ PayPal, Stripe, Razorpay and Paymob gateways with sandbox mode
- โ Email notification and order alert toggles
- โ 12 languages included โ add your own and edit every translation key in the browser
- โ Delivery areas with their own delivery fee
Customer Website Overview
The customer ordering website is built into the Laravel application. There is nothing separate to install, build or host โ once the admin panel is installed, the website is live at your domain root.
| URL | Page |
|---|---|
| / | Home |
| /menu ยท /menu/{item} | Menu and item details |
| /cart ยท /checkout | Cart and checkout |
| /orders/{order} | Order tracking and invoice |
| /reservations | Book a table |
| /login ยท /register | Customer sign-in and sign-up |
| /account/orders ยท /account/reservations | Customer history |
| /about ยท /contact ยท /terms ยท /privacy | Content pages |
| /admin | Admin panel login |
Storefront Themes
Change the whole look of the customer website without touching code. Go to Admin โ Themes, pick a theme and click Activate โ it goes live immediately.
Modern Orange Default
Crisp white with a bold orange accent and large food photography, built for quick browsing and one-tap ordering.
Cozy Orange
Warm and friendly โ soft cream, orange and forest green with a handwritten accent font.
Take the website offline
On the same Themes page, use Take offline to show visitors a maintenance page. Signed-in admin and staff can still browse the site to preview changes. Click Bring online to re-open it.
Where theme files live
Templates: resources/views/frontend/themes/<theme>/
Assets: public/themes/<theme>/
Website Content & SEO
Every section of the website is edited from Admin โ Website Settings. Changes apply to whichever theme is active.
| Admin screen | What it controls |
|---|---|
| Why Choose Us | Feature cards with icon, title and description on the homepage |
| Brand Highlights | Highlight strip / brand promises |
| Testimonials | Customer reviews with name, role and star rating |
| Stats Counter | Animated numbers such as happy customers or dishes served |
| Operating Hours | Opening hours per weekday, or closed |
| SEO Settings | Meta title, description, keywords, robots, canonical URL, Open Graph image |
| Legal Pages | Terms & Conditions and Privacy Policy content |
| Sliders (sidebar) | Homepage hero slides โ also used by the Flutter app |
| Settings โ General | Restaurant name, about text, contact details, social links, App Store / Play Store links |
Customer Website Features
Everything a customer needs to order or book โ responsive on desktop, tablet and mobile.
Dynamic Homepage
Hero slider, why-choose-us, popular dishes, stats counter, testimonials and app download links โ all editable from the admin.
Menu & Item Pages
Browse by category, filter by food type, and pick size variants and add-ons on each item page.
Cart & Checkout
Dine-in (with table), takeout or delivery (with delivery area and fee). Guest checkout or signed-in checkout.
Online Payments
Pay by cash or through PayPal, Stripe, Razorpay or Paymob โ whichever gateways you enable.
Live Order Tracking
Order status page refreshes automatically as the kitchen and rider progress the order. Download the invoice as PDF.
Table Booking
Reservation form with a visual time slider and live table availability for the chosen party size.
Customer Account
Register, log in, reset password, and view order and reservation history.
Contact & Newsletter
Contact form (saved in the admin and emailed) and newsletter sign-up in the footer.
Legal Pages & SEO
Terms and Privacy pages, meta tags, Open Graph image and canonical URL from Website Settings.
Multi-language
Language switcher using the same translations as the admin panel.
Operating Hours
Opening hours per weekday shown in the footer and contact page.
Maintenance Mode
Take the storefront offline in one click โ signed-in staff can still preview it.
1Overview & Features
Customer App Features
The native Flutter app customers use to order on the go. It shares the menu, accounts and orders with the customer website.
Home & Discovery
Promo slider, categories, featured and new-arrival dishes, plus a food-type (diet) filter.
Item Details
Image gallery, size variants and add-ons before adding to the cart.
Wishlist
Save favourite dishes and come back to them later.
Cart & Checkout
Choose dine-in, takeout or delivery, pick a saved address and place the order.
Online Payments
Cash or PayPal, Stripe, Razorpay and Paymob โ the app returns automatically after payment via a deep link.
My Orders
Order history and order details with the current status.
Account & Security
Register, log in, change password; forgot password opens the website reset page.
Profile & Addresses
Edit profile and manage multiple delivery addresses.
Multi-language
Switch app language; translations are loaded from the admin panel.
2Setup
Requirements
Make sure your development machine meets the following before running or building the Flutter customer app. The same toolchain also builds the Rider App.
๐ป Development Machine
- โ Flutter 3.x or higher
- โ Dart 3.x
- โ Android Studio or VS Code
- โ Git
๐ฑ Platform SDKs
- โ Android SDK (API 21+)
- โ Xcode 15+ (macOS only, for iOS)
- โ CocoaPods (for iOS dependencies)
flutter doctor โ all items should show a green checkmark before proceeding.
Installation Guide
Get the Flutter customer app running on your local machine step by step.
Extract & Open Project
Extract the downloaded ZIP and open the Flutter customer app folder:
cd flutter-customer-app flutter pub get
Configure Base URL
Point the app to your live Laravel API โ see the Base URL section below for details.
Run on Device / Emulator
flutter run
Specify a target: flutter run -d android or flutter run -d ios
Build for Release
# Android APK / AAB flutter build apk --release flutter build appbundle --release # iOS (macOS only) flutter build ios --release
3Configuration
Base URL Setup
Connect the Flutter customer app to your deployed Laravel API.
// MyApp/lib/core/config/app_config.dart
static const String apiBaseUrl = String.fromEnvironment(
'API_BASE_URL',
defaultValue: 'https://your-domain.com/api', // here replace your domain
);
Base URL is your Laravel domain followed by /api โ e.g. https://yourdomain.com/api. No trailing slash.
Change App Name
1. Android
// android/app/src/main/AndroidManifest.xml android:label="YourAppName"
2. iOS
// ios/Runner/Info.plist <key>CFBundleName</key> <string>YourAppName</string>
Change Package Name
The project ships with the ID com.foodPilot.pro (Android and iOS). Change it to your own before publishing.
// android/app/build.gradle android { namespace = "com.yourcompany.yourapp" defaultConfig { applicationId = "com.yourcompany.yourapp" } }
Global Find & Replace
Verify these files after replacement:
- android/app/build.gradle
- android/app/src/main/AndroidManifest.xml
- android/app/src/debug/AndroidManifest.xml
- android/app/src/main/java/ (or kotlin/)
flutter clean && flutter pub get && flutter run
Change App Icon
Generate icon sets and replace for both platforms.
Generate all sizes with appicon.co โ upload a 1024ร1024 PNG and download all sizes.
MyApp/assets/images/logo.png
MyApp/assets/images/top_logo.png
flutter clean && flutter pub get
To generate all platform app icons, run this command
flutter pub run flutter_launcher_icons:main
Successfully generated launcher icons
flutter run
4Build & Release
Build for Android
Release APK
flutter build apk --release # Output: build/app/outputs/flutter-apk/app-release.apk
Split APKs (smaller download size)
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
AAB โ Google Play Store
Create signing keystore:
# macOS/Linux keytool -genkey -v -keystore ~/upload-keystore.jks \ -keyalg RSA -keysize 2048 -validity 10000 -alias upload # Windows PowerShell keytool -genkey -v -keystore $env:USERPROFILE\upload-keystore.jks ` -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
Copy android/keystore.properties.example to android/keystore.properties and fill it in (paths are relative to the android/ folder). Release builds stop with an error until this file points to a real keystore:
storePassword=your_store_password keyPassword=your_key_password keyAlias=upload storeFile=../upload-keystore.jks
Build:
flutter build appbundle # Output: build/app/outputs/bundle/release/app-release.aab
Build for iOS
Requires macOS with Xcode 14+ and an active Apple Developer account ($99/year).
Create Certificate Signing Request
Keychain Access โ Certificate Assistant โ Request a Certificate from a Certificate Authority โ Save to disk.
Create iOS Distribution Certificate
Apple Developer portal โ Certificates, IDs & Profiles โ Create iOS Distribution certificate using your CSR file.
Open in Xcode
open ios/Runner.xcworkspace
Set Bundle Identifier, Version, Team, and Signing Certificate in target settings.
Build & Archive
flutter build ipa
Then: Xcode โ Product โ Archive โ Distribute App โ App Store Connect โ Upload.
5Reference & Troubleshooting
Project Structure & Troubleshooting
Where things live in the customer app (GetX, feature-module layout):
lib/ โโโ core/ โ โโโ config/app_config.dart # API base URL, media URL helper โ โโโ i18n/ # translation keys โ โโโ network/ # HTTP client โ โโโ storage/ # token & local storage โโโ app/bindings/ # dependency injection โโโ data/ # models + repositories (API calls) โโโ modules/ # controllers: auth, catalog, cart, orders, profile, wishlist โโโ presentation/ โ โโโ core/routes/ # route names & pages โ โโโ screen/ # home, all_food, my_cart, my_order, profile, authentications, โฆ โโโ widget/ # shared widgets (payment dialog, theme, โฆ) โโโ utils/ # strings, images, constants
Rebrand colours: every app colour lives in lib/utils/constraints.dart. Change primaryColor (buttons, active states) and accentColor (prices, links). The currency symbol comes from your admin settings automatically.
App can't connect / "connection error"
- Base URL must be your domain followed by
/api, without a trailing slash. - Open
https://yourdomain.com/api/healthin a browser โ it should return 200. - On an Android emulator
localhostmeans the emulator itself โ use10.0.2.2. - Use HTTPS in production; iOS blocks plain-HTTP requests by default.
App doesn't return after online payment
The gateway redirects back through the deep link scheme foodpilotpro://payment-success / payment-cancel. It is declared in android/app/src/main/AndroidManifest.xml and ios/Runner/Info.plist. If you rename it, change all three places โ including scheme in lib/modules/cart/controllers/cart_controller.dart.
Menu images don't load
Image paths are resolved against the API domain. On the server, run php artisan storage:link and make sure APP_URL in .env is your real HTTPS domain.
Build errors after extracting
flutter clean flutter pub get
Icon didn't change
Re-run dart run flutter_launcher_icons, then fully uninstall the app before reinstalling.
1Overview & Features
Rider App Overview
FoodPilot Rider is the rider application of the FoodPilot platform,
built with Flutter for Android and iOS. It ships as its own Flutter project
(flutter-rider-app), separate from the customer app.
Riders sign in with credentials created in the admin panel, see the orders available in their area, claim one, move it through the delivery stages, collect cash on delivery, and review their completed history โ in their own language.
Version
1.0.0
Platforms
Android & iOS
Framework
Flutter 3.41+
Architecture
GetX + Repository
Install the backend first
The rider app is a rider client only. It needs the FoodPilot Laravel backend installed first, exposing the
rider/* API routes listed in
API Endpoints. It will not work against an unrelated server.
Rider App Features
๐ Authentication
Email & password login, remember me, forgot password, change password. Tokens attached automatically by a Dio interceptor.
๐ Dashboard
Today's To-Do, Completed and Available counters, unclaimed orders and today's assigned orders. Pull to refresh.
๐ Claim Orders
Riders claim available orders straight from the dashboard or the details screen. Counters update instantly.
๐ต Delivery Workflow
Move an order out for delivery, then confirm completion through a cash-collection dialog.
๐ Order Details
Customer info, items and totals, with one-tap phone dialing and location links.
๐ Order History
A full history tab plus a My Orders tab listing delivered orders only.
๐ค Profile
Update details, change avatar from camera or gallery, change password, Terms & Privacy, logout.
๐ Multi-language
English and Bengali bundled offline; extra languages served from the backend without an app update.
๐๏ธ Clean Architecture
Every screen follows Binding โ Controller โ Repository โ View, so new features drop in without touching existing code.
๐ Responsive UI
ScreenUtil scaling across phone sizes, shimmer loaders and a single centralized theme.
Rider App Screens
Navigated through a four-tab bottom bar: Home ยท Order History ยท My Orders ยท Profile.
Login
Email & password with remember me
Forgot Password
Request a password reset
Home / Dashboard
Counters, available & today's orders
Order History
All past orders
My Orders
Delivered orders only
Order Details
Items, totals, call & location
Cash Collection
Confirm amount before delivery
Profile
Details, legal pages, logout
Update Profile
Edit details & avatar
Change Password
Update account password
Language
Switch app language
Order Flow
Order states are defined in lib/features/orders/model/order_status.dart and mapped from the backend's app_status field.
What the rider does
Claim
Taps an available order on the dashboard, or opens it and presses Accept Order. Dashboard counters update immediately.
Go out for delivery
On the order details screen, presses To Deliver. The status becomes Delivering.
Deliver
Presses Delivered. A cash-collection dialog shows the amount due; confirming marks the order delivered on the server.
| Status | Meaning | Card mark |
|---|---|---|
| Available | Unclaimed โ any rider can take it | D |
| To-Pickup / Picking Up / Picked Up | Pickup leg of the journey | P |
| Dropped in Store | Handed over at the store | D |
| To Deliver | Assigned and ready to go out | D |
| Delivering | Out for delivery | D |
| Delivered | Completed โ appears in My Orders | D |
Custom status slugs? OrderStatusX.fromApi() translates backend values to UI states โ out-for-delivery becomes Delivering, and confirmed / preparing / ready all become Available. Add your own slugs to that switch.
2Setup
Requirements
| Requirement | Version / Notes |
|---|---|
| Flutter SDK | 3.41.2 or newer (stable channel) |
| Dart SDK | ^3.10.3 โ ships with the Flutter version above |
| Android Studio / VS Code | Latest, with Flutter & Dart plugins |
| JDK | Java 17 โ required for the Android build |
| Xcode | Latest stable โ macOS only, for iOS builds |
| Backend | FoodPilot Laravel API with rider/* routes enabled |
Verify your environment first:
flutter --version flutter doctor
Installation & Setup
1. Extract the package
Unzip the downloaded file. The Flutter project is the folder containing pubspec.yaml.
2. Install dependencies
cd flutter-rider-app flutter pub get
3. Point the app at your server
Set your API base URL โ see API Base URL.
4. Create a rider account
Riders cannot self-register. In the admin panel open Riders โ Add New, enter the rider's name, email and password, and keep the account active. The rider signs in to the app with those credentials. From Orders you can also assign an order to a specific rider.
5. Run the app
flutter devices # confirm a device or emulator is connected flutter run
If the build fails right after extracting, run flutter clean && flutter pub get once to clear artifacts left from the packaging machine.
3Configuration
API Base URL
Pass your server URL at build time โ no code edit needed (same as the customer app).
flutter run --dart-define=API_BASE_URL=https://your-domain.com/api flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.com/api
The default used when no API_BASE_URL is passed lives in lib/core/config/api_constants.dart.
Use the right host for where you test:
| Environment | API_BASE_URL |
|---|---|
| Production server | https://yourdomain.com/api/ |
| Android emulator โ local | http://10.0.2.2/foodpilot-backend/public/api/ |
| iOS simulator โ local | http://localhost/foodpilot-backend/public/api/ |
| Real device โ local | http://192.168.x.x/foodpilot-backend/public/api/ |
The trailing slash matters. Endpoints are appended directly to baseUrl, so omitting the final / produces malformed URLs and every request fails.
Testing over plain HTTP? Android and iOS block cleartext by default. Always use HTTPS in production. On Android, debug builds (flutter run) already allow http:// for local testing, while release builds require HTTPS. On iOS, add a temporary NSAppTransportSecurity exception in Info.plist and remove it before publishing.
Token handling
After login the API token is stored with get_storage. The interceptor at lib/core/network/api_interceptor.dart attaches it to every request automatically โ you never pass tokens manually when adding endpoints.
Change App Name
1. In-app title
// lib/core/config/app_constants.dart static const String appName = "YourAppName";
2. Android launcher
// android/app/src/main/AndroidManifest.xml android:label="YourAppName"
3. iOS home screen
// ios/Runner/Info.plist <key>CFBundleDisplayName</key> <string>YourAppName</string>
Change Package Name
The project ships with the ID com.foodPilot.rider (Android and iOS). Change it to your own before publishing.
// android/app/build.gradle.kts android { namespace = "com.yourcompany.yourapp" defaultConfig { applicationId = "com.yourcompany.yourapp" } }
Then verify these locations:
- android/app/build.gradle.kts
- android/app/src/main/AndroidManifest.xml
- android/app/src/main/kotlin/ โ rename folders to match
- MainActivity.kt โ update the package declaration
Global Find & Replace
iOS bundle identifier
Open ios/Runner.xcworkspace in Xcode โ select the Runner target โ Signing & Capabilities โ set your Bundle Identifier and development team.
flutter clean && flutter pub get && flutter run
Change App Icon
Icons are generated automatically from a single source image.
1. Replace the source image
Drop your square logo (1024ร1024 PNG recommended) at:
assets/images/logo.png
2. Regenerate
dart run flutter_launcher_icons
Settings live in the flutter_launcher_icons block of pubspec.yaml.
Icon didn't change? Fully uninstall the app from the device before reinstalling โ launchers cache icons aggressively.
Colors & Theme
The whole color system lives in one file. Changing primary re-themes the entire app โ
buttons, badges, highlights and loaders all reference it.
// lib/core/config/app_colors.dart class AppColors { static const Color primary = Color(0xFFF98819); static const Color primaryDark = Color(0xFFE07410); static const Color primaryLight = Color(0xFFFFB35C); }
primary
#F98819
secondary
#008D4C
headerGreen
#008D4C
background
#F5F5F5
textPrimary
#1A1A1A
error
#EF4444
Fonts & component styles
Defined in lib/core/config/app_theme.dart and app_text_style.dart. Typography uses google_fonts, so swapping the family is a one-line change.
Languages & Translations
English and Bengali ship bundled as offline fallbacks in
assets/lang/. On startup the app loads the bundled file, then fetches
the translation set for the saved language from the API โ so you can add or edit languages from the admin panel without republishing.
Editing existing text
Edit the key/value pairs in assets/lang/en.json or bn.json. Keys are used in the UI with GetX's .tr extension, e.g. 'accept_order'.tr.
Adding a bundled language
- Copy
en.jsontoassets/lang/<slug>.jsonand translate the values. - Load it in
AppTranslations.loadAssetFallback(). - Map the slug in
localeKeyForSlug()andlocaleForSlug(). - Make sure the language also exists on the server so it appears in the picker.
Languages returned by the languages endpoint appear in the picker automatically and fall back to English for any missing key. Bundling a local JSON file is only needed for full offline support.
Permissions
| Permission | Platform | Why |
|---|---|---|
| Camera | Both | Take a profile photo |
| Photo library / media images | Both | Choose a profile photo |
| Dialer query (tel:) | Android | Call the customer from order details |
iOS usage strings are already set in Info.plist (NSCameraUsageDescription, NSPhotoLibraryUsageDescription). Edit the wording to match your brand before App Store submission.
4Build & Release
Build for Android
Before you publish
The project ships with the package name com.foodPilot.rider. Change it to your own, and set up your release keystore below. Release builds stop with an error until the keystore is configured.
1. Create a keystore
keytool -genkey -v -keystore ~/upload-keystore.jks \ -keyalg RSA -keysize 2048 -validity 10000 -alias upload
2. Create android/keystore.properties
storePassword=yourPassword keyPassword=yourPassword keyAlias=upload storeFile=/full/path/to/upload-keystore.jks
Copy it from android/keystore.properties.example. The release build picks it up automatically, so no Gradle changes are needed.
3. Build
flutter build appbundle --release # Google Play flutter build apk --release # direct install
Build for iOS
Requires macOS, Xcode, and a paid Apple Developer account with a configured bundle ID.
flutter build ipa --release
Then open build/ios/archive/Runner.xcarchive in Xcode and distribute to App Store Connect.
Pod errors? Run cd ios && pod install --repo-update.
5Reference & Troubleshooting
Project Structure
lib/ โโโ main.dart # bootstrap: storage, language, theme, loaders โโโ routes/app_pages.dart # route table (page + binding) โโโ core/ โ โโโ config/ # colors, theme, text styles, routes, API constants โ โโโ network/ # ApiClient, interceptor, ApiResponse โ โโโ services/ # StorageService, LanguageService, AppTranslations โ โโโ widgets/ # buttons, text fields, status badge, bottom nav โ โโโ utils/validators/ # form validators โโโ features/ โโโ authentication/ # login, forgot password โโโ home/ # dashboard โโโ orders/ # history, my orders, details, claim/deliver โโโ profile/ # profile, update, change password, legal โโโ language/ # language picker
Feature pattern
Every feature folder repeats the same five directories:
| Folder | Responsibility |
|---|---|
| binding/ | Registers the controller with GetX when the route opens |
| controller/ | Reactive state and user actions (GetxController) |
| repository/ | All API calls and response parsing for that feature |
| model/ | Data classes |
| view/ & widgets/ | Screens and feature-local widgets |
Adding a new screen
- Create the feature folder with the five directories.
- Add a route constant in
app_routes.dart. - Register the
GetPageinapp_pages.dart. - Navigate with
Get.toNamed(...).
Regenerating model code
Models use json_serializable. After editing an annotated model:
dart run build_runner build \ --delete-conflicting-outputs
Packages used
| Package | Purpose |
|---|---|
| get | State management, routing, DI, translations |
| dio | HTTP client with interceptors |
| get_storage / flutter_secure_storage | Local key-value storage and secure token storage |
| flutter_screenutil | Responsive sizing |
| google_fonts | Typography |
| cached_network_image / flutter_svg | Image and SVG rendering |
| image_picker | Camera and gallery access |
| flutter_easyloading / shimmer | Loading indicators and skeletons |
| flutter_html | Render Terms & Privacy pages from the backend |
| url_launcher | Phone dialing and external links |
| json_serializable / build_runner | Model code generation |
| flutter_launcher_icons | Launcher icon generation |
API Endpoints
All rider routes are namespaced under rider/ and defined in lib/core/config/api_constants.dart.
| Area | Endpoint | Purpose |
|---|---|---|
| Auth | rider/login | Sign in โ returns token + user |
| rider/logout | Invalidate session | |
| rider/forgot-password | Password reset request | |
| rider/change-password | Change password | |
| Profile | rider/profile | Fetch profile |
| rider/update-profile | Update details & avatar | |
| Orders | rider/dashboard | Today's counters |
| rider/orders | Rider's orders | |
| rider/orders/available | Unclaimed orders | |
| rider/order/{id} | Order details | |
| rider/order/claim | Claim an order | |
| rider/order/accept | Accept an order assigned by the admin | |
| rider/order/out-for-delivery | Mark out for delivery | |
| rider/order/delivered | Mark delivered | |
| Language | languages | Available languages |
| languages-files | Translation strings | |
| rider/change-language | Save rider's preference | |
| Settings | basic-info | Restaurant info & legal pages (Terms, Privacy) |
Timeouts: 30s connect ยท 60s receive. Login is rate-limited to 10 requests/minute and forgot-password to 5/minute by the backend.
Troubleshooting
Login fails / "connection error"
- Confirm
baseUrlis correct and ends with a trailing slash. - Open
<baseUrl>rider/loginin Postman to confirm the server responds. - On an emulator
localhostmeans the device itself โ use10.0.2.2on Android. - Release builds only connect over HTTPS. A plain
http://server works only with debug builds (flutter run).
Dashboard is empty
The dashboard shows today's data. With no orders assigned to that rider today the counters read zero โ this is expected. Verify by calling rider/dashboard directly with the rider's token.
Orders show the wrong status
Your backend is returning a status slug the app doesn't recognize; unknown values default to To Deliver. Add the slug to OrderStatusX.fromApi().
Build errors after extracting
flutter clean flutter pub get dart run build_runner build --delete-conflicting-outputs
Icon didn't change
Re-run dart run flutter_launcher_icons, then fully uninstall the app before reinstalling.
Support
Getting help
If this documentation doesn't resolve your issue, reach out through the item's support tab on CodeCanyon with:
- Your purchase code
- Which part is affected โ Admin panel / API, customer website, Customer app or Rider app
- For Laravel:
php -vand the relevant lines fromstorage/logs/laravel.log - For Flutter apps: output of
flutter --versionandflutter doctor - The full error message or a screenshot
Support covers bugs and setup questions for the items as delivered. It does not cover custom feature development or third-party service configuration.
Changelog
Security (recommended for every install)
- โ Mobile API orders are priced on the server from the menu โ client-sent prices and payment status are ignored
- โ PayPal, Stripe, Razorpay and Paymob callbacks verify the gateway reference and full amount; failed callbacks never change an order
- โ Payment return URLs limited to your own site and the app deep link (no open redirect)
- โ Inactive accounts can no longer sign in; changing a password needs the current password; store statistics are staff-only
- โ Profile photos are validated as images (jpg, png, webp, max 4 MB)
Riders
- โ Rider App API under
/api/rider/*and rider management in the admin panel at/admin/riders
Customer app
- โ Prices use your store currency; delivery fee shown in cart and order details
- โ Online payment: real payment status after checkout, "Pay now" retry for unpaid orders, no duplicate orders
- โ Working change password, forgot password (opens the website reset page), profile photo upload, show / hide password
- โ Terms and Privacy links on sign-up open your legal pages; acceptance is required
- โ Realistic ready / delivery time on the success screen; skeleton loading; more screens translated
- โ Automatic sign-out with a clear message when the session expires
Rider app
- โ Shows "Paid online โ do not collect cash" vs. "Collect amount" so riders never charge twice
- โ Get Direction opens Google Maps; customer instructions shown on the order
- โ Available orders refresh automatically every 45 seconds; skeleton loading; screens translated
- โ API URL set at build time with
--dart-define=API_BASE_URL=โฆ
How to update
- Back up your database and files, then upload the new backend files.
- Run
php artisan migrate --forceandphp artisan optimize:clear. - Rebuild both apps with your API URL:
flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.com/api. - Using Paymob? Make sure the HMAC secret is filled in under Payment Gateways โ unsigned webhooks are now rejected.
- โ New built-in customer website served by Laravel โ no separate Node.js app to deploy
- โ Storefront themes (Modern Orange, Cozy Orange) with one-click switching and maintenance mode
- โ Website Settings: Why Choose Us, Brand Highlights, Testimonials, Stats Counter, Operating Hours, SEO, Legal Pages
- โ Delivery riders, delivery areas and the Flutter rider app
- โ Kitchen Display System (KDS) and table reservations
- โ POS: reuse existing customers by phone, edit open orders, delivery orders
- โ Profile tabs with order & reservation history for users, customers and riders
- โ 12 languages, demo login buttons and Livewire 4
- โ Security: unique phone numbers enforced and a role privilege-escalation fix
- โ Flutter customer app (Android + iOS)
- โ Flutter delivery / rider app (Android + iOS)
- โ Laravel 12 REST API backend
- โ Admin dashboard with full order management
- โ Kitchen Display System (KDS)
- โ Table reservation management
- โ Order status tracking
Update changelog on every release to keep buyers informed.