chore: initial Laravel 13 project setup for eCert MBIP

- Laravel 13.9 + PHP 8.5 + MySQL
- Bootstrap 5.3 + jQuery 3.7 + Chart.js (replacing Alpine/Tailwind)
- Packages: intervention/image, dompdf, simple-qrcode, league/csv, laravel/breeze, laravel/boost
- 17 database migrations: users, programs, qr_codes, participants, attendances, certificates, questionnaires, email_logs, audit_logs
- 13 Eloquent models with full relationships
- Admin layout (Bootstrap 5 sidebar) + public layout (mobile-first)
- Rate limiters: checkin (60/min), certificate (30/min)
- Admin seeder: admin@mbip.gov.my
- Storage directories + symlink configured

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Saufi
2026-05-16 15:44:19 +08:00
commit 5b85822b78
159 changed files with 18351 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('programs', function (Blueprint $table) {
$table->id();
$table->uuid('uuid')->unique();
$table->string('title');
$table->text('description')->nullable();
$table->string('organizer');
$table->string('location', 500);
$table->date('start_date');
$table->date('end_date');
$table->dateTime('checkin_start_at')->nullable();
$table->dateTime('checkin_end_at')->nullable();
$table->dateTime('ecert_download_start_at')->nullable();
$table->dateTime('ecert_download_end_at')->nullable();
$table->enum('status', ['draft', 'published', 'closed'])->default('draft');
$table->boolean('allow_walk_in')->default(true);
$table->enum('default_staff_session', ['pagi', 'petang', 'full_day'])->nullable();
$table->enum('default_external_session', ['pagi', 'petang', 'full_day'])->nullable();
$table->foreignId('created_by')->constrained('users')->cascadeOnDelete();
$table->timestamps();
$table->index('status');
$table->index('uuid');
});
}
public function down(): void
{
Schema::dropIfExists('programs');
}
};