File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -673,6 +673,7 @@ public function deleteUser(request $request)
673
673
public function delProfilePicture ()
674
674
{
675
675
$ user_id = Auth::user ()->id ;
676
+ $ user_id = User::find ($ user_id )->littlelink_name ; // remove when switching to IDs
676
677
$ path = base_path ('img/ ' . $ user_id . '.png ' );
677
678
678
679
if (File::exists ($ path )) {
Original file line number Diff line number Diff line change 26
26
@csrf
27
27
@if ($page -> littlelink_name != ' ' )
28
28
<div class =" form-group col-lg-8" >
29
- <label >Logo</label >@if (file_exists (base_path (" img/" . Auth :: user () -> id . " .png" )) )<a title =" Remove icon" class =" hvr-grow p-1 text-danger" style =" padding-left :5px ;" href =" {{ route (' delProfilePicture' ) } }" ><i class =" bi bi-trash-fill" ></i ></a >@endif
29
+ <label >Logo</label >@if (file_exists (base_path (" img/" . $page -> littlelink_name . " .png" )) )<a title =" Remove icon" class =" hvr-grow p-1 text-danger" style =" padding-left :5px ;" href =" {{ route (' delProfilePicture' ) } }" ><i class =" bi bi-trash-fill" ></i ></a >@endif
30
30
<input type =" file" accept =" image/jpeg,image/jpg,image/png" class =" form-control-file" name =" image" >
31
31
</div >
32
32
@endif
You can’t perform that action at this time.
0 commit comments