Ana Sayfa / Kod ve Scriptler / Laravel Multi-Role Auth Starter
Laravel Multi-Role Auth Starter
4 rol, OTP ile parola sıfırlama, zorunlu parola değiştirme akışı, 6 form isteği ve yönetici seeder'ı içeren eksiksiz Laravel kimlik doğrulama. Kullanıma hazır.
- Yayın tarihi7 Haziran 2026
- Nerede çalışırPHP 8.1, PHP 8.2, PHP 8.3
- Paket içeriği.php, .sql
- Son güncelleme7 Haziran 2026
- Canlı demoVar

Overview
Skip weeks of boilerplate. This is a complete, production-ready authentication system for Laravel — not a tutorial, not a skeleton. Real code you can drop into your project today.
What's included: - 4 auth controllers: Login, Register, OTP Password Reset, Force Password Change - RoleMiddleware — guards routes by role with a clean, extensible design - ForcePasswordChange middleware — intercepts sessions and redirects until password is updated - 6 Form Request classes covering all auth inputs with proper validation rules - User model + StaffInfo model with relationships - Full database migration with role columns and indexes - Admin seeder — seed your first superadmin with one command
The flow this covers: User registers → role assigned → login → OTP reset if needed → force-change on first login (for staff) → role-based route access
Who this is for: Any Laravel developer building a system with admins, staff, managers, or customers — SaaS apps, HR systems, clinic portals, POS systems, internal dashboards.
Stop rewriting auth from scratch on every project.
Features
- LoginController with remember-me and role-aware redirect - RegisterController with role assignment on signup - OTP Password Reset — generates and validates one-time codes - ForcePasswordChange controller and middleware flow - RoleMiddleware supporting multiple roles per route - 6 Form Request classes (Login, Register, OtpRequest, OtpVerify, ResetPassword, ChangePassword) - User model with role relationship - StaffInfo model linked to User - Migration with role column, indexes, and foreign keys - Admin seeder for first superadmin account - Compatible with Laravel 10 and 11 - No third-party auth packages required
Requirements
- PHP 8.1 or higher - Laravel 10 or Laravel 11 - MySQL 5.7+ or MariaDB 10.3+ - Composer - An SMTP mail driver (for OTP email delivery)
Benzer ürünler

LoginPro, temiz ve modern bir PHP kimlik doğrulama ve kullanıcı yönetimi şablonudur. Basit bir giriş sistemi içerir.
Yayın: Ağustos 2026
PHP'de Google, Facebook ve Twitter (X) OAuth girişi için eksiksiz kurulum rehberi
Yayın: Haziran 2026
Giriş, kayıt, e-posta doğrulama, beni hatırla oturumları, parola sıfırlama ve herhangi bir web uygulaması için yönetici arayüzü içeren güvenli PHP kimlik doğrulama.
Yayın: Haziran 2026
Kullanıcıları, ürünleri, kategorileri, sepetleri ve kademeli fiyatları yönetmek için hafif bir PHP MySQL yönetici paneli kaynak kodu projesi.
Yayın: Nisan 2026
En güçlü Laravel 12 ve Vue 3 yönetici paneli. CRUD modüllerini otomatik üretin, eksiksiz REST API'ler ve rol tabanlı erişimi saniyeler içinde kurun
Yayın: Nisan 2026
Google, Facebook, Twitter ve LinkedIn girişi, e-posta doğrulama ve koyu cam arayüzlü profesyonel PHP 8.1 kimlik doğrulama sistemi
Yayın: Mart 2026