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:53:07 +01:00 committed by GitHub
parent dc4ab42663
commit 1c7f71e56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@
<div class="updated" style="display:none">
@foreach($updatedPages as $page)
@if(file_exists(public_path("img/$page->littlelink_name" . ".png" )))
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
<a href="{{ config('app.url') }}/@<?= $page->littlelink_name ?>" target="_blank">
<img src="{{ asset("img/$page->littlelink_name" . ".png") }}" srcset="{{ asset("img/$page->littlelink_name" . "@2x.png 2x") }}" width="50px" height="50px">
</a>