Files
bhoza-shift-manager/src/app/Providers/AppServiceProvider.php
Mulanga 961f288d97 feat: add Shift Planning module with full CRUD, attendance, and reporting
- Add shifts, shift_staff, and shift_attendance migrations
- Add Shift, ShiftStaff, ShiftAttendance Eloquent models with auditing
- Add ShiftService with business logic (create, start, complete, assign staff, mark attendance, reports, timesheets)
- Add ShiftResource with list, create, edit, and attendance management pages
- Add staff and attendance relation managers
- Add standalone pages: ActiveShifts, StaffManagement, ShiftReports, Timesheets
- Add dashboard widgets: ShiftOverview stats, TodaysShifts table
- Add ShiftPolicy for role-based authorization
- Add 10 shift permissions and manager role to RolePermissionSeeder
- Update User model with shift relationships
- Fix audits table migration with required columns for owen-it/laravel-auditing
- Update DatabaseSeeder to create admin user and call RolePermissionSeeder
- Switch docker-compose to MariaDB 10.11 for Docker Desktop compatibility
2026-03-10 09:44:17 +02:00

26 lines
469 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Gate::policy(\App\Models\Shift::class, \App\Policies\ShiftPolicy::class);
}
}