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:
parent
14c324734f
commit
c097c0ae09
|
@ -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') }}">
|
||||
|
|
Loading…
Reference in New Issue