diff --git a/config/filesystems.php b/config/filesystems.php
index f4093bc..da3fc7a 100644
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -68,6 +68,9 @@ return [
'identity_documents' => [
'driver' => $identityDocumentsDriver,
'root' => $identityDocumentsRoot,
+ 'url' => $identityDocumentsDriver === 'local'
+ ? rtrim(env('APP_URL', 'http://localhost'), '/').'/identity-documents'
+ : env('AWS_URL'),
'serve' => true,
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
diff --git a/phpunit.xml b/phpunit.xml
index d703241..f38800b 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -25,6 +25,7 @@
+
diff --git a/tests/Feature/FilesystemConfigurationTest.php b/tests/Feature/FilesystemConfigurationTest.php
new file mode 100644
index 0000000..92ea26b
--- /dev/null
+++ b/tests/Feature/FilesystemConfigurationTest.php
@@ -0,0 +1,12 @@
+toBe('/identity-documents')
+ ->and(route('storage.identity_documents', [
+ 'path' => 'submissions/example.jpg',
+ ], false))
+ ->toBe('/identity-documents/submissions/example.jpg');
+});