From bab16982dd64e3f58bf2242d5ad0585f9a331e01 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 11 Sep 2024 15:12:40 -0500 Subject: [PATCH] private files (#6450) --- config/filesystems.php | 3 ++- storage/app/.gitignore | 1 + storage/app/private/.gitignore | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 storage/app/private/.gitignore diff --git a/config/filesystems.php b/config/filesystems.php index c5f244d7f..b564035a9 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -32,7 +32,8 @@ return [ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => storage_path('app/private'), + 'serve' => true, 'throw' => false, ], diff --git a/storage/app/.gitignore b/storage/app/.gitignore index 8f4803c05..fedb287fe 100644 --- a/storage/app/.gitignore +++ b/storage/app/.gitignore @@ -1,3 +1,4 @@ * +!private/ !public/ !.gitignore diff --git a/storage/app/private/.gitignore b/storage/app/private/.gitignore new file mode 100644 index 000000000..d6b7ef32c --- /dev/null +++ b/storage/app/private/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore