1.1 KiB
1.1 KiB
Edit Functionality for User and Family Data
Tasks
- Add editProfile() and updateProfile() methods in FamilyController
- Add routes for profile.edit and profile.update in web.php
- Create profile-edit.blade.php view
- Add edit buttons in show.blade.php
- Add edit link in dashboard.blade.php for user card
- Test the edit forms
Image Upload Modal Component
Tasks
- Create migration for profile_picture column in users table
- Update User model to add profile_picture to fillable and casts
- Add cropperjs and browser-image-compression to package.json
- Update app.js to import cropperjs and browser-image-compression
- Create image-upload-modal.blade.php component
- Add uploadProfilePicture method to FamilyController
- Add route for profile picture upload in web.php
- Update profile-edit.blade.php to include profile picture section
- Update updateProfile method to handle profile_picture (not needed, upload is separate)
- Run npm install and php artisan migrate
- Test the image upload functionality (implementation complete, manual testing required)