A simple school attendance system built with Laravel 12. Supports role-based dashboards for admin, teacher, and student, with attendance tracking and charts.
- Role-based authentication and dashboards:
- Admin: Manage students, manage attendances, view charts
- Teacher: View and manage attendances
- Student: View personal attendance
- Students CRUD (admin)
- Attendances CRUD with date filter and search
- Simple charts using Chart.js
- Authentication scaffolded with Laravel Breeze
- PHP 8.2+
- Laravel 12.x
- MySQL / MariaDB
- Node.js + npm (for frontend assets via Vite)
- Composer
- Clone the repo:
git clone https://github.com/bondanbanuaji/sistem-absensi.git
cd sistem-absensi- Copy .env.example to .env and set DB credentials:
cp .env.example .env- Install dependencies:
composer install
npm install
npm run build
php artisan key:generate- Migrate & seed database:
php artisan migrate --seed- Serve project:
php artisan serve
# visit http://127.0.0.1:8000- Manage students and attendances
- View attendance charts
- Manage attendance records
- Filter and search students
- View personal attendance
- Role-specific routes are protected by middleware
- Students cannot access admin or teacher routes
- Use
php artisan route:listto see all routes - Clear cache if needed:
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:clearMIT License