Commit Graph

2 Commits

Author SHA1 Message Date
micko samawa 605e92bbd9 Fix: Reset super admin, fix User model role attribute, remove rate limiting for development
- Added new super admin account (mikoadmin@gmail.com)
- Fixed User model getRoleLabelAttribute() to handle null role
- Fixed AuthController to refresh user after creation
- Removed rate limiting from register/login endpoints for development
- Added migration to ensure role and phone columns exist
- Updated app config with correct IP (10.192.233.99:8000)
- Fixed API response to include all required fields for Flutter
2026-05-19 08:01:07 +07:00
micko samawa 585d36fe09 feat: Separate admin and user tables for independent authentication
- Create new 'admins' table with role column (admin/super_admin)
- Create Admin model for admin authentication
- Add AdminSeeder with test data (super_admin, admin)
- Update config/auth.php with dual guards (web for users, admin for admins)
- Update AdminAuthController to use Admin model and 'admin' guard
- Remove role column from users table (users have no role)
- Update register validation messages in Indonesian
- Now same email can be used by user and admin (separate tables)
2026-05-18 20:50:22 +07:00