Skip to content

Commit 8429f8a

Browse files
authored
Merge pull request #3822 from Laravel-Backpack/change-placehold-url
change placeholder URL
2 parents 41e07e1 + 21ee463 commit 8429f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ function backpack_users_have_email()
9999
function backpack_avatar_url($user)
100100
{
101101
$firstLetter = $user->getAttribute('name') ? mb_substr($user->name, 0, 1, 'UTF-8') : 'A';
102-
$placeholder = 'https://placehold.it/160x160/00a65a/ffffff/&text='.$firstLetter;
102+
$placeholder = 'https://via.placeholder.com/160x160/00a65a/ffffff/&text='.$firstLetter;
103103

104104
switch (config('backpack.base.avatar_type')) {
105105
case 'gravatar':
106106
if (backpack_users_have_email()) {
107-
return Gravatar::fallback('https://placehold.it/160x160/00a65a/ffffff/&text='.$firstLetter)->get($user->email);
107+
return Gravatar::fallback('https://via.placeholder.com/160x160/00a65a/ffffff/&text='.$firstLetter)->get($user->email);
108108
} else {
109109
return $placeholder;
110110
}

0 commit comments

Comments
 (0)