Skip to content

Commit

Permalink
feat: allow public filesystem relative urls
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Feb 10, 2023
1 parent 7c893d1 commit 29b8529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . '/storage',
'url' => (bool) env('FILESYSTEM_PUBLIC_ABSOLUTE_URL', true)
? env('APP_URL') . '/storage'
: '/storage',
'visibility' => 'public',
],

Expand Down

0 comments on commit 29b8529

Please sign in to comment.