A modern, responsive web application built with Laravel for managing school operations including student records, dormitory management, food supplements, hospital visits, and more.
- 🔐 Simple Authentication System (admin123 / pcshskp123)
- 📊 Comprehensive Dashboard with real-time statistics
- 👥 Student Management (Add, Delete, Search)
- 🏠 Dormitory Management
- 📄 Reports System with filtering
- 📱 Fully Responsive Design (Mobile, Tablet, Desktop)
- 🎨 Beautiful UI/UX with Sarabun font and Tailwind CSS
- ⚡ Fast Performance with Eloquent ORM
- 🏠 Dormitory Entry/Exit
- 🥛 Food Supplements
- 🏥 Hospital Visits
- 👔 Uniform Inspection
- 📋 Daily Duty Reports
- 🔧 Repair Requests
- 📦 Inventory Management
- 📄 Permission Requests
- 📋 Student Leave Requests
- PHP >= 8.1
- MySQL >= 8.0 or MariaDB >= 10.3
- Composer
- Web Server (Apache/Nginx) or PHP built-in server
composer installcp .env.example .env
php artisan key:generateEdit .env:
DB_DATABASE=digm_system
DB_USERNAME=root
DB_PASSWORD=your_password# Create database
mysql -u root -p -e "CREATE DATABASE digm_system CHARACTER SET utf8mb4;"
# Run migrations
php artisan migrate
# Seed sample data (optional)
php artisan db:seedphp artisan serveVisit: http://localhost:8000
Login with: admin123 or pcshskp123
webpcshs/
├── app/
│ ├── Http/Controllers/ # Controllers (Auth, Dashboard, Management, etc.)
│ ├── Models/ # Eloquent Models (10+ models)
│ └── Http/Middleware/ # CheckAuth middleware
├── database/
│ ├── migrations/ # 10 migration files
│ └── seeders/ # Sample data seeders
├── resources/views/ # Blade templates
│ ├── layouts/app.blade.php # Main layout with Sarabun font
│ ├── auth/login.blade.php
│ ├── dashboard/index.blade.php
│ ├── management/index.blade.php
│ └── reports/index.blade.php
├── routes/web.php # Application routes
└── config/ # Laravel configuration
- ✅ Sarabun Font - Google Fonts (Thai-optimized)
- ✅ Tailwind CSS 3 - Modern utility-first CSS
- ✅ Responsive Grid - Mobile-first design
- ✅ Smooth Animations - Slide-in & fade effects
- ✅ Color-coded Stats - Visual identification
- ✅ Auto-hiding Messages - Flash notifications
- ✅ Live Clock - Real-time date/time display
dormitories,students,recordsrecord_students,food_records,hospital_recordsrepair_records,inventory_recordspermission_records,student_leave_records
- Dormitory → Students (1:Many)
- Dormitory → Records (1:Many)
- Record → RecordStudents (1:Many)
- Record → Specific Records (1:1)
# Clear cache
php artisan cache:clear
php artisan config:clear
# Reset database
php artisan migrate:fresh --seed
# Run tests
php artisan testDocumentRoot /path/to/webpcshs/public
<Directory /path/to/webpcshs/public>
AllowOverride All
</Directory>root /path/to/webpcshs/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}- ✅ Set
APP_ENV=production - ✅ Set
APP_DEBUG=false - ✅ Configure database
- ✅ Set file permissions
- ✅ Enable HTTPS
Powered by: Laravel, Tailwind CSS, Sarabun Font