Installing Custom User Avatars¶
Upload¶
- Unpack the download.
-
Copy the
UserAvatarsfolder intoextensions/Others/of your Paymenter installation, so that this file exists:extensions/Others/UserAvatars/UserAvatars.php
Instead of copying the folder yourself, you can upload the zip file in the admin area: open Extensions, then Available Extensions, switch to the Ready to Install / Upload tab and click Upload Extension. Paymenter accepts zip files up to 10 MB there and places the extension in extensions/Others/UserAvatars/.
Enable¶
- In the admin area, open Extensions, then Available Extensions.
- Switch to the Ready to Install / Upload tab.
- Find the row
UserAvatarsand click Install, then confirm. - Paymenter opens the extension's edit page. Switch on Enabled and save.
The extension creates no database tables and runs no migrations.
Create the storage link¶
Avatars are saved in storage/app/public and served from /storage. If public/storage does not exist yet, create the link from the Paymenter root:
php artisan storage:link
The web server user must be able to write to storage/app/public.
Warning
Avatar URLs are built from APP_URL in your .env file (APP_URL + /storage/...). If APP_URL is wrong, uploaded pictures do not load.
Update¶
Replace the extensions/Others/UserAvatars folder with the new version, or upload the new zip with Upload Extension. Uploaded avatars are not stored in the extension folder, so they are kept.
Uninstall¶
- In the admin area, open the Extensions list and edit the
UserAvatarsentry. - Switch off Enabled and save to disable it, or click Uninstall Extension to remove the entry.
- Delete
extensions/Others/UserAvatarsif you no longer need the files.
Warning
Disabling or uninstalling does not delete uploaded pictures or the saved avatar paths. To remove them, delete storage/app/public/avatars and the rows in the properties table with the key profile_avatar_path.