This repository contains the code for a hotel management system that is designed to replace manual registration systems in hotels. The system is built on top of the Laravel framework and uses MySQL as the database. It features a user-friendly dashboard that allows hotel staff to easily manage guests, rooms, and bookings.
- 🌟 Tech stack:Laravel + Blade Templates + TailwindCSS
- 🎃 Authentication & Authorization with built-in Laravel Sanctum
- 👾 Role-based user management (Admin/User)
- 🚀 Dynamic user dashboards for different roles
- 🔄 Data seeding with pre-configured users for easy testing (Admin and regular user)
- Frontend:: Blade Templates, TailwindCSS
- Backend: Laravel (PHP)
- Database: MySQL (Eloquent ORM)
- Seeder: Laravel Seeder for prepopulated database entries
Contributions are welcome! Feel free to fork the repository and submit pull requests.
- PHP >= 7.3
- Composer
- Node.js & npm (for Tailwind compilation)
- MySQL
-
Clone the repository:
git clone https://github.com/srijan-lamichhane/HotelManagementSystem.git cd HotelManagementSystem
-
Install dependencies:
composer install npm install
-
Set up environment variables:
cp .env.example .env php artisan key:generate
Make sure to configure the
.env
file with your database credentials. -
Run migrations and seed the database:
php artisan migrate php artisan db:seed
-
Compile assets:
npm run dev
-
Start the development server:
php artisan serve
-
Login using the seeded admin account: or register the user
- Email:
admin@gmail.com
- Password:
admin123
- Email: