A Laravel-based school lunch ordering and administration system for Narita High School Attached Elementary School (成田高等学校付属小学校).
The platform allows parents or guardians to manage lunch orders, while administrators can manage users, orders, delivery data, menus, notices, holidays, billing, and system records.
Website: https://naritaps.com/
- User registration and account management
- Email verification
- School lunch ordering
- Order confirmation and cancellation
- Notices and announcements
- Usage guide
- Terms of service and privacy policy
- User management
- Order management
- Delivery list management
- Delivery PDF generation
- Menu upload
- Product and billing management
- Holiday and suspension-date management
- News management
- Activity log viewing
- PHP 8.1+
- Laravel 10
- MySQL
- Laravel UI
- Laravel Sanctum
- Blade
- Bootstrap 5
- JavaScript
- Sass
- Axios
- Vite
- Dompdf
Install the following before running the project:
- PHP 8.1 or later
- Composer
- Node.js and npm
- MySQL or MariaDB
Clone the repository:
git clone https://github.com/omega0106/order-site-laravel.git
cd order-site-laravelInstall PHP dependencies:
composer installInstall frontend dependencies:
npm installCreate the environment file:
cp .env.example .envGenerate the application key:
php artisan key:generateConfigure your database in .env:
APP_NAME="Order Site"
APP_ENV=local
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=order_site
DB_USERNAME=root
DB_PASSWORD=Run the database migrations:
php artisan migrateCreate the storage link:
php artisan storage:linkClear cached configuration:
php artisan optimize:clearStart the Laravel server:
php artisan serveStart Vite in another terminal:
npm run devOpen:
http://127.0.0.1:8000
Build frontend assets:
npm run buildInstall optimized Composer dependencies:
composer install --no-dev --optimize-autoloaderCache Laravel configuration:
php artisan config:cache
php artisan route:cache
php artisan view:cache| Route | Purpose |
|---|---|
/ |
Public top page |
/home |
Lunch ordering page |
/confirm |
Order confirmation |
/user |
User account page |
/notice |
Notices |
/usage |
Usage guide |
/userManage |
User management |
/orderManage |
Order management |
/delivery |
Delivery management and PDF export |
/suspension |
Order suspension management |
/restManage |
Holiday management |
/menu |
Menu management |
/news |
News management |
/product |
Product information |
/bill |
Billing management |
/log |
System logs |
Run the following command to see the complete route list:
php artisan route:listThe project uses Laravel mail for account verification and notifications.
Example local SMTP configuration:
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="noreply@example.com"
MAIL_FROM_NAME="${APP_NAME}"After updating email settings:
php artisan config:clearDelivery documents are generated with Dompdf.
The main delivery PDF endpoint is:
POST /delivery/pdf
If Japanese text is not rendered correctly, install and configure a Japanese-compatible font on the server.
Run the test suite:
php artisan testFormat PHP code:
./vendor/bin/pintapp/ Application models, controllers, mail, and services
config/ Laravel configuration
database/ Migrations, factories, and seeders
public/ Public assets
resources/ Blade templates, JavaScript, Sass, and CSS
routes/ Web and API routes
storage/ Logs, cache, sessions, and uploaded files
tests/ Automated tests
Before production deployment:
- Set
APP_DEBUG=false. - Do not commit the
.envfile. - Protect administrator routes with authentication and authorization.
- Validate uploaded menu files.
- Validate all order and user-management requests.
- Use HTTPS.
- Back up the database regularly.
- Ensure
storageandbootstrap/cacheare writable. - Review email verification and account-management permissions.
npm install
npm run buildphp artisan optimize:clearphp artisan storage:linkCheck the DB_* values in .env, then run:
php artisan config:clearchmod -R 775 storage bootstrap/cacheThis project uses the Laravel framework, which is licensed under the MIT License. Confirm the license for the custom application code with the repository owner before redistribution.