项目
在 GitHub 查看 


WailanTirajoh/Laravel-Hotel
关于
Hotel App, built with Laravel 12
网站与应用开发可以做什么
- Reverb notifications for new reservations
- Live dashboard updates
- Push notifications for staff
- Real-time payment status updates
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Laravel Hotel
Laravel Hotel is an open-source web application built with laravel 8.0, enchanced with laravel reverb features to have realtime notification experience.
Its now compatible with laravel 12
🖼️ Screenshots
🚀 Installation
Prerequisites
- PHP 8.2+
- Composer
- Node.js & NPM
- MySQL/MariaDB
Database Setup
Create a new database:
mysql -u root -p
CREATE DATABASE hotel_app;
EXIT;
Installation Steps
- Clone & Configure
git clone https://github.com/WailanTirajoh/Laravel-Hotel.git
cd Laravel-Hotel
cp .env.example .env
- Install Dependencies
composer install
npm install
- Generate Assets
npm run build # For production
# OR
npm run dev # For development
- Setup Application
php artisan key:generate
php artisan migrate:fresh --seed
- Start Services
# Terminal 1: Application Server
php artisan serve
# Terminal 2: Reverb Server (for real-time notifications)
php artisan reverb:start
🔐 Demo Login
Access the admin dashboard with seeded demo accounts:
- Email: [email protected]
- Password: demo_pass
Note: Use the database seeders to create demo accounts, or check your
.envfile for configured test credentials.
🏗️ Architecture & Features
📊 Dashboard Modules
Dashboard
- Real-time guest statistics with animated counters
- Monthly charts with Chart.js integration
- Today's guest overview with table design
- Quick action buttons for common tasks
- Welcome message with current date/time
Transaction Management
- Complete reservation workflow with step-by-step process
- Payment tracking with status badges
- Down payment system (15% minimum)
- Real-time email and push notifications
- invoice generation
Customer Management
- CRUD operations with forms
- Advanced search and pagination
- Customer profile pages with activity history
- Avatar integration with fallback images
- Relationship tracking with transactions
Room Management
- Multi-level room management (Rooms, Types, Status, Facilities)
- image galleries
- Availability checking system
- Capacity-based room recommendations
- Status tracking with color-coded indicators
User Management (Super Admin Only)
- Role-based access control (Super, Admin, Customer)
- User activity logging with Spatie ActivityLog
- user profiles
- Permission management
🔔 Real-time Features
- Reverb notifications for new reservations
- Live dashboard updates
- Push notifications for staff
- Real-time payment status updates
📱 UI Components
Modern Navigation
- Sleek sidebar with gradient background
- Tooltip-enabled navigation icons
- Dropdown menus with smooth animations
- user profile dropdown
Enhanced Forms
- Floating labels with smooth transitions
- validation styling
- Select2 integration for dropdowns
- Date pickers with modern styling
Data Visualization
- tables with hover effects
- Chart.js integration for analytics
- Progress bars and status indicators
- badge system
🎨 Design System
Color Palette
- Primary:
#2563eb(Blue) - Success:
#10b981(Success Green) - Warning:
#f59e0b(Warning Amber) - Danger:
#ef4444(Error Red) - Light:
#f8fafc(Background Light) - Dark:
#1e293b(Text Dark)
Typography
- Primary Font: Inter (400, 500, 600, 700)
- Fallback: Nunito, sans-serif
- Size Scale: 0.875rem base with 1.6 line height
Components
- Cards: 12px border radius with subtle shadows
- Buttons: gradients with hover effects
- Forms: Floating labels with focus states
- Tables: Hover effects with styling
📋 Business Logic
Reservation Workflow
- Customer Registration: Admin creates/selects customer profile
- Room Selection: System recommends available rooms based on:
- Date range availability
- Guest capacity requirements
- Room type preferences
- Confirmation: Review booking details and pricing
- Payment: Minimum 15% down payment required
- Check-in/Check-out: Status tracking throughout stay
Payment System
- Down payment calculation (15% minimum)
- Balance tracking and payment completion
- invoice generation
- Payment history with status indicators
Notification System
- Real-time Reverb notifications
- Email notifications for important events
- Push notifications for mobile devices
- Activity logging for audit trails
🗄️ Database Schema
Key Relationships
- Users → Customers (1:1)
- Customers → Transactions (1:N)
- Rooms → Transactions (1:N)
- Transactions → Payments (1:N)
- Rooms → Types (N:1)
- Rooms → Status (N:1)
🔧 Technical Stack
Backend
- Laravel 12: Latest PHP framework
- PHP 8.2+: Modern PHP features
- MySQL: Reliable database system
- Laravel Reverb: WebSocket server
- Spatie Packages: Activity logging and more
Frontend
- Bootstrap 5: Modern CSS framework
- Font Awesome 6: icon set
- Chart.js 4: Data visualization
- Select2: Enhanced select dropdowns
- DataTables: table management
- SweetAlert2: Beautiful alerts and modals
Development Tools
- Vite: Modern build tool
- Sass: Advanced CSS preprocessing
- Laravel Pint: Code formatting
- PHPUnit: Testing framework
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is open-sourced software licensed under the MIT license.
👨💻 Developer
Wailan Tirajoh
- GitHub: @WailanTirajoh
- Instagram: @tirajoh
- Facebook: tirajohw
🎯 Perfect for
- Hotel and hospitality management
- Learning Laravel development
- dashboard implementations
- Real-time web application examples
- Modern UI/UX design patterns
Built with ❤️ using Laravel 12 and modern web technologies.
探索相关项目
加载中…