Avatar Profile not showing using Edit Profile Plugin

i already upload my profile avatar image but the image not showing on my profile, thanks !
No description
Solution:
filesystems.php : 'public' => [ 'driver' => 'local', 'root' => storage_path('app'),...
Jump to solution
6 Replies
Vp
Vp5d ago
either storage link or app_url misconfig
Fazaa
FazaaOP5d ago
i already use storage link
Vp
Vp5d ago
ok then app_url in .env it should be like http://localhost:8000 (notice the port) or maybe problem in the plugin you used
Mohamed Ayaou
Mohamed Ayaou4d ago
read the plugin docs clearly and make sure you migrated all the needed files, and the User model e.g has the suitable traits ans so additionally you can check the dev tools to see the url of the image and if it is matching the one in your storage and in the database
Fazaa
FazaaOP4d ago
alright thanks all for the solution i figured it out, i made mistake that filesystems.php where 'public' must be 'app' and do php artisan storage:link
Solution
Fazaa
Fazaa4d ago
filesystems.php : 'public' => [ 'driver' => 'local', 'root' => storage_path('app'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', 'throw' => false, ], 'links' => [ public_path('storage') => storage_path('app'), ], User Model: public function getFilamentAvatarUrl(): ?string { return Storage::url(path: $this->avatar_url); }

Did you find this page helpful?