Skip to content

Commit

Permalink
Fix logos not being displayed
Browse files Browse the repository at this point in the history
Fix #318
  • Loading branch information
Ghabry committed Sep 13, 2022
1 parent c4704b6 commit 404753c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'local' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],

Expand Down
4 changes: 2 additions & 2 deletions resources/views/_partials/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
@endphp
@if($logo)
<a href="/">
<img class="mx-auto d-block" height="100px" src="{{ asset($logo->filename) }}" alt="Logo: {{ $logo->title }}"/>
<img class="mx-auto d-block" height="100px" src="{{ Storage::url($logo->filename) }}" alt="Logo: {{ $logo->title }}"/>
</a>
<p class="text-center">logo '{{ $logo->title }}' by <a href='{{ url('users', $logo->id) }}' class='user'>{{ $logo->name }}</a> :: {{ config('app.name') }} is brought to you with love.</p>
@else
<p class="text-center">No Logo until now!</p>
@endif
</div>
</div>

0 comments on commit 404753c

Please sign in to comment.