Files
alrahma_sunday_school_api/app/Http/Middleware
root 36101b78d3
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m17s
API CI/CD / Build frontend assets (push) Successful in 2m13s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix: guard Auth::guard('sanctum') call with try-catch in TeacherPortalAuthenticate
The TeacherPortalAuthenticate middleware called Auth::guard('sanctum')
without a try-catch, unlike MultiAuth and EnsurePrintRequestsAdminAccess
which already handle the InvalidArgumentException gracefully when the
sanctum guard driver is not yet registered.

This caused 'Auth guard [sanctum] is not defined' errors in tests when
the SanctumServiceProvider's driver registration hadn't completed before
middleware execution.
2026-06-24 02:33:06 -04:00
..
2026-06-11 11:46:12 -04:00
2026-06-11 11:46:12 -04:00
2026-06-11 11:46:12 -04:00
2026-06-11 11:46:12 -04:00
2026-06-24 00:34:58 -04:00
2026-06-11 11:46:12 -04:00
2026-06-11 11:46:12 -04:00