mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
.
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user