Commit Graph

8 Commits

Author SHA1 Message Date
Sholahuddin Al Ayubi
0b28760f41 feat: Implement user-branch relationship and update user management views
- Added a many-to-many relationship between users and branches in User model.
- Updated user creation and editing views to support multiple branch selection.
- Modified user index view to display associated branches.
- Created UserBranch model to manage user-branch associations.
- Added migration for user_branches table with foreign key constraints.
- Implemented seeder to populate user_branches based on existing user branch data.

Run this command:
- php artisan migrate
- php artisan module:seed Usermanagement --class=UserBranchesSeeder
2025-12-11 17:20:34 +07:00
Daeng Deni Mardaeni
a25194dc07 Handle undefined user scenario in role input
Added a conditional check to handle cases where the user is undefined when rendering role input fields. This ensures that the role selection logic works correctly for both new user creation and existing user updates.
2024-10-31 11:39:34 +07:00
Daeng Deni Mardaeni
b185a60b53 Fix role assignment check on user creation form
Replaced Auth user roles check with the roles of the user being created. This ensures the correct role is pre-selected based on the user’s roles, rather than the creator's roles.
2024-10-31 11:27:34 +07:00
Daeng Deni Mardaeni
2850902c64 Update E-Sign 2024-09-19 14:49:13 +07:00
Daeng Deni Mardaeni
47f248c7b3 Update Module Users
- Fix Form Validation for Check Password, if null password not changed
- Update Validation NIK on Update user data
- Fix Role Not Assign if value is id not role name
- Change User Migration, change password field to nullable
2024-08-28 09:09:29 +07:00
Daeng Deni Mardaeni
18b8ed5344 Update Module User, Add Role Selection 2024-08-28 08:58:47 +07:00
Daeng Deni Mardaeni
d3baaa31c1 Update Module User
- Add Nik and branch,
2024-08-27 14:45:50 +07:00
Daeng Deni Mardaeni
225b326a5e Initial Commit 2024-08-07 08:47:07 +07:00