This commit is contained in:
Ryan Scherler
2020-12-08 15:23:17 -08:00
parent d26685a4b9
commit 58c9c26d9f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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',