@@ -985,6 +985,10 @@ <h3 id="configuring-your-layout"><a class="heading-anchor" href="#configuring-yo
985985 </body>
986986</html>
987987</ textarea > </ code > </ pre >
988+ < h2 id ="deploying-to-production "> < a class ="heading-anchor " href ="#deploying-to-production "> < span class ="heading-anchor-icon " aria-hidden ="true "> #</ span > </ a > Deploying to production</ h2 >
989+ < h3 id ="using-a-production-ready-storage-disk "> < a class ="heading-anchor " href ="#using-a-production-ready-storage-disk "> < span class ="heading-anchor-icon " aria-hidden ="true "> #</ span > </ a > Using a production-ready storage disk</ h3 >
990+ < p > Filament has a storage disk defined in the < a href ="#publishing-configuration "> configuration</ a > , which by default is set to < code > public</ code > . You can set the < code > FILAMENT_FILESYSTEM_DISK</ code > environment variable to change this.</ p >
991+ < p > The < code > public</ code > disk, while great for easy local development, is not suitable for production. It does not support file visibility, so features of Filament such as < a href ="prebuilt-actions/export "> exports</ a > will create public files. In production, you need to use a production-ready disk such as < code > s3</ code > with a private access policy, to prevent unauthorized access to the exported files.</ p >
988992< h2 id ="publishing-configuration "> < a class ="heading-anchor " href ="#publishing-configuration "> < span class ="heading-anchor-icon " aria-hidden ="true "> #</ span > </ a > Publishing configuration</ h2 >
989993< p > You can publish the package configuration using the following command (optional):</ p >
990994< pre class ="torchlight " style ="background-color: #292D3E; --theme-selection-background: #00000080; " data-torchlight-processed ="3449c9e5e332f1dbb81505cd739fbf3f "> < code class ="language-bash "> <!-- Syntax highlighted by torchlight.dev --> < div class ='line '> < span style ="color: #FFCB6B; "> php</ span > < span style ="color: #A6ACCD; "> </ span > < span style ="color: #C3E88D; "> artisan</ span > < span style ="color: #A6ACCD; "> </ span > < span style ="color: #C3E88D; "> vendor:publish</ span > < span style ="color: #A6ACCD; "> </ span > < span style ="color: #C3E88D; "> --tag=filament-config</ span > </ div > < textarea data-torchlight-original ="true " style ="display: none !important; "> php artisan vendor:publish --tag=filament-config
@@ -1025,7 +1029,7 @@ <h2 id="upgrading"><a class="heading-anchor" href="#upgrading"><span class="head
10251029 < nav aria-labelledby ="on-this-page-title " class ="my-6 w-56 astro-PTWJFCKA ">
10261030 < h2 id ="on-this-page-title " class ="font-display text-sm font-bold text-stone-900 dark:text-white astro-PTWJFCKA ">
10271031 On this page
1028- </ h2 > < ol role ="list " class ="mt-4 space-y-3 text-sm astro-PTWJFCKA " x-data ="tableOfContents([{"depth":2,"slug":"requirements","text":"Requirements","title":"Requirements","children":[]},{"depth":2,"slug":"installation","text":"Installation","title":"Installation","children":[]},{"depth":2,"slug":"new-laravel-projects","text":"New Laravel projects","title":"New Laravel projects","children":[]},{"depth":2,"slug":"existing-laravel-projects","text":"Existing Laravel projects","title":"Existing Laravel projects","children":[{"depth":3,"slug":"installing-tailwind-css","text":"Installing Tailwind CSS","title":"Installing Tailwind CSS"},{"depth":3,"slug":"configuring-styles","text":"Configuring styles","title":"Configuring styles"},{"depth":3,"slug":"automatically-refreshing-the-browser","text":"Automatically refreshing the browser","title":"Automatically refreshing the browser"},{"depth":3,"slug":"compiling-assets","text":"Compiling assets","title":"Compiling assets"},{"depth":3,"slug":"configuring-your-layout","text":"Configuring your layout","title":"Configuring your layout"}]},{"depth":2,"slug":"publishing-configuration","text":"Publishing configuration","title":"Publishing configuration","children":[]},{"depth":2,"slug":"upgrading","text":"Upgrading","title":"Upgrading","children":[]}]) " x-on:scroll.window ="updateCurrentSection ">
1032+ </ h2 > < ol role ="list " class ="mt-4 space-y-3 text-sm astro-PTWJFCKA " x-data ="tableOfContents([{"depth":2,"slug":"requirements","text":"Requirements","title":"Requirements","children":[]},{"depth":2,"slug":"installation","text":"Installation","title":"Installation","children":[]},{"depth":2,"slug":"new-laravel-projects","text":"New Laravel projects","title":"New Laravel projects","children":[]},{"depth":2,"slug":"existing-laravel-projects","text":"Existing Laravel projects","title":"Existing Laravel projects","children":[{"depth":3,"slug":"installing-tailwind-css","text":"Installing Tailwind CSS","title":"Installing Tailwind CSS"},{"depth":3,"slug":"configuring-styles","text":"Configuring styles","title":"Configuring styles"},{"depth":3,"slug":"automatically-refreshing-the-browser","text":"Automatically refreshing the browser","title":"Automatically refreshing the browser"},{"depth":3,"slug":"compiling-assets","text":"Compiling assets","title":"Compiling assets"},{"depth":3,"slug":"configuring-your-layout","text":"Configuring your layout","title":"Configuring your layout"}]},{"depth":2,"slug":"deploying-to-production","text":"Deploying to production","title":"Deploying to production","children":[{"depth":3,"slug":"using-a-production-ready-storage-disk","text":"Using a production-ready storage disk","title":"Using a production-ready storage disk"}]},{"depth":2,"slug":"publishing-configuration","text":"Publishing configuration","title":"Publishing configuration","children":[]},{"depth":2,"slug":"upgrading","text":"Upgrading","title":"Upgrading","children":[]}]) " x-on:scroll.window ="updateCurrentSection ">
10291033 < li class ="astro-PTWJFCKA ">
10301034 < h3 class ="astro-PTWJFCKA ">
10311035 < a href ="#requirements " class ="inline-block transition duration-300 ease-out astro-PTWJFCKA " x-bind:class ="current == 'requirements' ? 'text-butter font-bold translate-x-1' : 'text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-300 hover:translate-x-1' ">
@@ -1076,6 +1080,19 @@ <h3 class="astro-PTWJFCKA">
10761080 </ a >
10771081 </ li >
10781082 </ ol >
1083+ </ li > < li class ="astro-PTWJFCKA ">
1084+ < h3 class ="astro-PTWJFCKA ">
1085+ < a href ="#deploying-to-production " class ="inline-block transition duration-300 ease-out astro-PTWJFCKA " x-bind:class ="current == 'deploying-to-production' ? 'text-butter font-bold translate-x-1' : 'text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-300 hover:translate-x-1' ">
1086+ Deploying to production
1087+ </ a >
1088+ </ h3 >
1089+ < ol role ="list " class ="mt-2 space-y-3 pl-5 text-gray-500 dark:text-gray-300 astro-PTWJFCKA ">
1090+ < li class ="astro-PTWJFCKA ">
1091+ < a href ="#using-a-production-ready-storage-disk " class ="inline-block transition duration-300 ease-out astro-PTWJFCKA " x-bind:class ="current == 'using-a-production-ready-storage-disk' ? "text-butter translate-x-1" : "hover:text-gray-600 dark:hover:text-white hover:translate-x-1" ">
1092+ Using a production-ready storage disk
1093+ </ a >
1094+ </ li >
1095+ </ ol >
10791096 </ li > < li class ="astro-PTWJFCKA ">
10801097 < h3 class ="astro-PTWJFCKA ">
10811098 < a href ="#publishing-configuration " class ="inline-block transition duration-300 ease-out astro-PTWJFCKA " x-bind:class ="current == 'publishing-configuration' ? 'text-butter font-bold translate-x-1' : 'text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-300 hover:translate-x-1' ">
0 commit comments