From 58c9c26d9ffb178259f85f6f2f5fd647144fee77 Mon Sep 17 00:00:00 2001 From: Ryan Scherler Date: Tue, 8 Dec 2020 15:23:17 -0800 Subject: [PATCH] . --- src/Filament.php | 4 ++-- src/View/Components/Avatar.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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',