File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
resources/views/components Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ public function bio(): string
102
102
return $ this ->bio ;
103
103
}
104
104
105
+ public function githubId (): ?string
106
+ {
107
+ return $ this ->github_id ;
108
+ }
109
+
105
110
public function githubUsername (): string
106
111
{
107
112
return $ this ->github_username ?? '' ;
Original file line number Diff line number Diff line change 4
4
] )
5
5
6
6
<?php
7
- $src = $user -> githubUsername ()
8
- ? sprintf (' https://unavatar.io/github/%s?%s' , $user -> githubUsername (), http_build_query ([
9
- ' fallback' => asset (' https://laravel.io/images/laravelio-icon-gray.svg' ),
10
- ]))
7
+ $src = $user -> githubId ()
8
+ ? sprintf (' https://avatars.githubusercontent.com/u/%s' , $user -> githubId ())
11
9
: asset (' https://laravel.io/images/laravelio-icon-gray.svg' );
12
10
? >
13
11
You can’t perform that action at this time.
0 commit comments