Proje: Okul Platform · Hub: Okul Platform — Domain
Kayıt Akışı (POST /auth/register)
UserRegisterRequestvalidationUserService::create()— User + UserContact + UserDetail oluşturauth()->login($user)— Otomatik logincreateToken(AccessTokenNameType::LOGIN)— Sanctum token- Admin ise roles/permissions de yüklenir
JsonResponse::created+access_token
Rate limit: throttle:5,1 (kayıt da 5/dk ile kısıtlı)
Profil Endpoint’leri
GET /api/me— Auth kullanıcı bilgisiPUT /api/me— Profil güncellePUT /api/me/notification-permissions— Bildirim tercihleriPOST /api/change-password— Şifre değiştir
Çıkış (Logout)
$currentAccessToken = $request->user()->currentAccessToken();
$currentAccessToken->delete();Sadece mevcut token silinir. Diğer cihaz token’ları aktif kalır.
updateNotificationPermissions
PUT /api/me/notification-permissions — Push bildirim açma/kapama.
PasswordReset
POST /api/forgot-password → Email/SMS ile reset kodu
POST /api/reset-password/{code} → Yeni şifre
PasswordReset modeli ile kayıtlı kod.
PasswordResetRepositoryInterface
Related
- api-auth-system — Auth endpoint’leri
- api-otp-code-system — OTP kayıt akışı
- api-kvkk-agreement-system — Kayıt sırasında KVKK