Avatar Profile not showing using Edit Profile Plugin
i already upload my profile avatar image but the image not showing on my profile, thanks !
Solution:Jump to solution
filesystems.php :
'public' => [
'driver' => 'local',
'root' => storage_path('app'),...
6 Replies
either storage link or app_url misconfig
i already use storage link
ok then app_url in
.env
it should be like http://localhost:8000
(notice the port)
or maybe problem in the plugin you usedread 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
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
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);
}