How salaheddinedaghri/employee-management-system works
Project type and purpose
• This is a full-stack web application built on the Laravel PHP framework.
• Purpose: an Employee Management System that handles HR tasks (leave requests, certificate generation, employee records).
File structure
• app/ ··· contains MVC components and business logic
– HTTP Controllers (app/Http/Controllers) implement request handling
– Models (app/Models) map to database tables
– Services (app/Services) encapsulate business rules (e.g., LeaveService)
– Console Commands (app/Console/Commands) handle scheduled tasks (annual leave reset, reactivation)
– Middleware (app/Http/Middleware) enforces auth, roles, CSRF, etc.
• routes/ ··· define web (routes/web.php), API (routes/api.php), console and broadcast channels
• resources/ ··· contains front-end assets and Blade templates (views, CSS, JS, Sass)
• public/ ··· serves static assets (CSS, JS, Bootstrap, Word templates) and is the web server’s document root
• config/, bootstrap/, storage/, database/ ··· Laravel core configuration, cache, logs, migrations, seeders
• package.json, vite.config.js, tailwind.config.js ··· front-end build and asset pipeline
README for additional insights
• Describes two user roles: Admin and Employee
• Admin manages data, approves requests, generates certificates
• Employee submits leave requests, views status, downloads certificates
• Tech stack: PHP ≥8.1, Laravel, MySQL, Composer, Git