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
c097c0ae09
commit
514e779025
|
@ -13,7 +13,7 @@
|
|||
@foreach($pages as $page)
|
||||
|
||||
<div class="form-group col-lg-8">
|
||||
@if(file_exists(public_path("img/$page->littlelink_name" . ".png" )))
|
||||
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
|
||||
<img src="{{ asset("img/$page->littlelink_name" . ".png") }}" srcset="{{ asset("img/$page->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