diff --git a/src/Filament.php b/src/Filament.php index f4f32f7185..508b8e3b3f 100644 --- a/src/Filament.php +++ b/src/Filament.php @@ -181,7 +181,7 @@ class Filament } /** - * Generates a secure Glide image URL. + * Generates an asset URL with optional image manipulations. * * @link https://glide.thephpleague.com/1.0/config/security/ * @@ -190,7 +190,7 @@ class Filament * * @return mixed */ - public function image($path, $manipulations = []) + public function url($path, $manipulations = []) { if (empty($manipulations)) { return Storage::disk(config('filament.disk'))->url($path); diff --git a/src/View/Components/Avatar.php b/src/View/Components/Avatar.php index 4f43bfb98a..cb942f02de 100644 --- a/src/View/Components/Avatar.php +++ b/src/View/Components/Avatar.php @@ -53,7 +53,7 @@ class Avatar extends Component return Gravatar::src($this->user->email, $this->size * $dpr); } - return Filament::image($this->user->avatar, [ + return Filament::url($this->user->avatar, [ 'w' => $this->size, 'h' => $this->size, 'fit' => 'crop',