A comprehensive, role-based healthcare management platform built with Laravel 10, featuring secure patient data management, health tips, and role-based access control.
- Administrator: Full system access, user management, system configuration
- Doctor: Patient care, health tips management, medical records
- Nurse: Patient care, limited administrative access
- Patient: Personal health dashboard, health tips access
- Comprehensive User Profiles: Extended health data including BMI, blood type, allergies, medications
- Health Tips System: Dynamic health advice with categories, priorities, and tags
- Patient Dashboard: Personal health metrics and management interface
- Secure Data Storage: HIPAA-compliant data handling
- Professional Landing Page: Healthcare-focused design with role-based registration
- Responsive Dashboard: Tailwind CSS-powered interface
- Interactive Components: Dynamic health tips, modal registration forms
- Mobile-First Design: Optimized for all devices
- Laravel Sanctum: API token authentication
- Role Middleware: Secure route protection
- Input Validation: Server-side validation for all forms
- CSRF Protection: Built-in Laravel security
- Backend: Laravel 10.x
- Frontend: Blade templates with Tailwind CSS
- Authentication: Laravel Breeze + Sanctum
- Database: MySQL with migrations and seeders
- Build Tool: Vite.js
- JavaScript: Alpine.js for interactivity
- PHP 8.1+
- Composer
- MySQL 5.7+
- Node.js & NPM
- Laravel Sail (optional)
git clone <repository-url>
cd Laravel-Project
composer install
npm install
cp .env.example .env
php artisan key:generate
Update .env
file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=healthcare_pro
DB_USERNAME=your_username
DB_PASSWORD=your_password
php artisan migrate
php artisan db:seed
npm run build
php artisan serve
Visit http://127.0.0.1:8000
to see the application.
GET /api/health-tips
- List all tipsGET /api/health-tips/random
- Get random tipGET /api/health-tips/category/{category}
- Filter by category
GET /api/users
- List all usersGET /api/users/role/{role}
- Filter users by roleGET /api/users/stats
- User statistics
- Login with admin credentials
- User Management: Create, edit, and manage user accounts
- System Overview: Monitor platform usage and statistics
- Health Tips: Manage and moderate health content
- Login with doctor credentials
- Patient Care: Access patient health information
- Health Tips: Create and manage health advice
- Dashboard: View patient statistics and health metrics
- Login with nurse credentials
- Patient Care: Access limited patient information
- Health Monitoring: Track patient health status
- Limited Admin: Basic administrative tasks
- Login with patient credentials
- Health Dashboard: View personal health metrics
- Health Tips: Access personalized health advice
- Profile Management: Update personal health information
- Modify
resources/css/app.css
for custom styles - Update Tailwind configuration in
tailwind.config.js
- Customize component styles in Blade templates
- Add new roles in
app/Http/Middleware/CheckRole.php
- Extend user model in
app/Models/User.php
- Create new controllers for additional functionality
Run the test suite:
php artisan test
Or use Pest (if installed):
./vendor/bin/pest
npm run dev
npm run build
npm run watch
- Admin Registration: Removed from public landing page for security
- Role Validation: All routes protected by role middleware
- Input Sanitization: All user inputs validated and sanitized
- API Protection: Sanctum tokens required for API access
- PHP 8.1+
- MySQL 8.0+
- Redis (optional, for caching)
- SSL certificate
- Web server (Nginx/Apache)
- Set
APP_ENV=production
in.env
- Run
php artisan config:cache
- Run
php artisan route:cache
- Set up web server configuration
- Configure database and environment variables
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the repository
- Check the Laravel documentation
- Review the code comments and documentation
- Laravel Team for the amazing framework
- Tailwind CSS for the utility-first CSS framework
- Alpine.js for lightweight JavaScript functionality
- Healthcare Community for domain expertise and feedback
Built with β€οΈ for modern healthcare management