Laravel - File Storage - Url Host Customization
If you would like to pre-define the host for URLs generated using the Storage
facade, you may add a url
option to the disk's configuration array:
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],