Change public path

This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
This commit is contained in:
JulianPrieber 2022-02-14 12:56:03 +01:00 committed by GitHub
parent 14c324734f
commit c097c0ae09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
</div>
<div class="form-group col-lg-8">
@if(file_exists(public_path("img/$user->littlelink_name" . ".png" )))
@if(file_exists(base_path("img/$user->littlelink_name" . ".png" )))
<img src="{{ asset("img/$user->littlelink_name" . ".png") }}" srcset="{{ asset("img/$user->littlelink_name" . "@2x.png 2x") }}" width="100px" height="100px">
@else
<img src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/avatar@2x.png 2x') }}">