Skip to content

Commit 4e119eb

Browse files
committed
rebuild docs + add sponsor
1 parent f1eaa41 commit 4e119eb

File tree

13 files changed

+117
-36
lines changed

13 files changed

+117
-36
lines changed

docs/dist/2.x/admin/resources/relation-managers/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,11 +1301,11 @@ <h3 id="attaching-with-pivot-attributes"><a class="heading-anchor" href="#attach
13011301
<p>Please ensure that any pivot attributes are listed in the <code>withPivot()</code> method of the relationship <em>and</em> inverse relationship.</p>
13021302
<h3 id="scoping-the-options"><a class="heading-anchor" href="#scoping-the-options"><span class="heading-anchor-icon" aria-hidden="true">#</span></a>Scoping the options</h3>
13031303
<p>You may want to scope the options available to <code>AttachAction</code>:</p>
1304-
<pre class="torchlight" style="background-color: #292D3E; --theme-selection-background: #00000080;" data-torchlight-processed="3449c9e5e332f1dbb81505cd739fbf3f"><code class="language-php"><!-- Syntax highlighted by torchlight.dev --><div class='line'><span style="color: #F78C6C;">use</span><span style="color: #FFCB6B;"> </span><span style="color: #A6ACCD;">Filament</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Tables</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Actions</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">AttachAction</span><span style="color: #89DDFF;">;</span></div><div class='line'><span style="color: #F78C6C;">use</span><span style="color: #FFCB6B;"> </span><span style="color: #A6ACCD;">Illuminate</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Database</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Eloquent</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Builder</span><span style="color: #89DDFF;">;</span></div><div class='line'>&nbsp;</div><div class='line'><span style="color: #FFCB6B;">AttachAction</span><span style="color: #89DDFF;">::</span><span style="color: #82AAFF;">make</span><span style="color: #89DDFF;">()</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">recordSelectOptionsQuery</span><span style="color: #89DDFF;">(</span><span style="color: #C792EA;">fn</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">(</span><span style="color: #FFCB6B;">Builder</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$</span><span style="color: #A6ACCD;">query</span><span style="color: #89DDFF;">)</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">=&gt;</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$</span><span style="color: #A6ACCD;">query</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">whereBelongsTo</span><span style="color: #89DDFF;">(</span><span style="color: #82AAFF;">auth</span><span style="color: #89DDFF;">()-&gt;</span><span style="color: #82AAFF;">user</span><span style="color: #89DDFF;">())</span></div><textarea data-torchlight-original="true" style="display: none !important;">use Filament\Tables\Actions\AttachAction;
1304+
<pre class="torchlight" style="background-color: #292D3E; --theme-selection-background: #00000080;" data-torchlight-processed="3449c9e5e332f1dbb81505cd739fbf3f"><code class="language-php"><!-- Syntax highlighted by torchlight.dev --><div class='line'><span style="color: #F78C6C;">use</span><span style="color: #FFCB6B;"> </span><span style="color: #A6ACCD;">Filament</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Tables</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Actions</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">AttachAction</span><span style="color: #89DDFF;">;</span></div><div class='line'><span style="color: #F78C6C;">use</span><span style="color: #FFCB6B;"> </span><span style="color: #A6ACCD;">Illuminate</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Database</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Eloquent</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Builder</span><span style="color: #89DDFF;">;</span></div><div class='line'>&nbsp;</div><div class='line'><span style="color: #FFCB6B;">AttachAction</span><span style="color: #89DDFF;">::</span><span style="color: #82AAFF;">make</span><span style="color: #89DDFF;">()</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">recordSelectOptionsQuery</span><span style="color: #89DDFF;">(</span><span style="color: #C792EA;">fn</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">(</span><span style="color: #FFCB6B;">Builder</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$</span><span style="color: #A6ACCD;">query</span><span style="color: #89DDFF;">)</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">=&gt;</span><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$</span><span style="color: #A6ACCD;">query</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">whereBelongsTo</span><span style="color: #89DDFF;">(</span><span style="color: #82AAFF;">auth</span><span style="color: #89DDFF;">()-&gt;</span><span style="color: #82AAFF;">user</span><span style="color: #89DDFF;">()))</span></div><textarea data-torchlight-original="true" style="display: none !important;">use Filament\Tables\Actions\AttachAction;
13051305
use Illuminate\Database\Eloquent\Builder;
13061306

13071307
AttachAction::make()
1308-
-&gt;recordSelectOptionsQuery(fn (Builder $query) =&gt; $query-&gt;whereBelongsTo(auth()-&gt;user())
1308+
-&gt;recordSelectOptionsQuery(fn (Builder $query) =&gt; $query-&gt;whereBelongsTo(auth()-&gt;user()))
13091309
</textarea></code></pre>
13101310
<h3 id="handling-duplicates"><a class="heading-anchor" href="#handling-duplicates"><span class="heading-anchor-icon" aria-hidden="true">#</span></a>Handling duplicates</h3>
13111311
<p>By default, you will not be allowed to attach a record more than once. This is because you must also set up a primary <code>id</code> column on the pivot table for this feature to work.</p>

docs/dist/2.x/forms/fields/index.html

Lines changed: 30 additions & 30 deletions
Large diffs are not rendered by default.

docs/dist/3.x/actions/installation/index.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,10 @@ <h3 id="configuring-your-layout"><a class="heading-anchor" href="#configuring-yo
985985
&lt;/body&gt;
986986
&lt;/html&gt;
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([{&#34;depth&#34;:2,&#34;slug&#34;:&#34;requirements&#34;,&#34;text&#34;:&#34;Requirements&#34;,&#34;title&#34;:&#34;Requirements&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;installation&#34;,&#34;text&#34;:&#34;Installation&#34;,&#34;title&#34;:&#34;Installation&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;new-laravel-projects&#34;,&#34;text&#34;:&#34;New Laravel projects&#34;,&#34;title&#34;:&#34;New Laravel projects&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;existing-laravel-projects&#34;,&#34;text&#34;:&#34;Existing Laravel projects&#34;,&#34;title&#34;:&#34;Existing Laravel projects&#34;,&#34;children&#34;:[{&#34;depth&#34;:3,&#34;slug&#34;:&#34;installing-tailwind-css&#34;,&#34;text&#34;:&#34;Installing Tailwind CSS&#34;,&#34;title&#34;:&#34;Installing Tailwind CSS&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;configuring-styles&#34;,&#34;text&#34;:&#34;Configuring styles&#34;,&#34;title&#34;:&#34;Configuring styles&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;automatically-refreshing-the-browser&#34;,&#34;text&#34;:&#34;Automatically refreshing the browser&#34;,&#34;title&#34;:&#34;Automatically refreshing the browser&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;compiling-assets&#34;,&#34;text&#34;:&#34;Compiling assets&#34;,&#34;title&#34;:&#34;Compiling assets&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;configuring-your-layout&#34;,&#34;text&#34;:&#34;Configuring your layout&#34;,&#34;title&#34;:&#34;Configuring your layout&#34;}]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;publishing-configuration&#34;,&#34;text&#34;:&#34;Publishing configuration&#34;,&#34;title&#34;:&#34;Publishing configuration&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;upgrading&#34;,&#34;text&#34;:&#34;Upgrading&#34;,&#34;title&#34;:&#34;Upgrading&#34;,&#34;children&#34;:[]}])" x-on:scroll.window="updateCurrentSection">
1032+
</h2><ol role="list" class="mt-4 space-y-3 text-sm astro-PTWJFCKA" x-data="tableOfContents([{&#34;depth&#34;:2,&#34;slug&#34;:&#34;requirements&#34;,&#34;text&#34;:&#34;Requirements&#34;,&#34;title&#34;:&#34;Requirements&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;installation&#34;,&#34;text&#34;:&#34;Installation&#34;,&#34;title&#34;:&#34;Installation&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;new-laravel-projects&#34;,&#34;text&#34;:&#34;New Laravel projects&#34;,&#34;title&#34;:&#34;New Laravel projects&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;existing-laravel-projects&#34;,&#34;text&#34;:&#34;Existing Laravel projects&#34;,&#34;title&#34;:&#34;Existing Laravel projects&#34;,&#34;children&#34;:[{&#34;depth&#34;:3,&#34;slug&#34;:&#34;installing-tailwind-css&#34;,&#34;text&#34;:&#34;Installing Tailwind CSS&#34;,&#34;title&#34;:&#34;Installing Tailwind CSS&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;configuring-styles&#34;,&#34;text&#34;:&#34;Configuring styles&#34;,&#34;title&#34;:&#34;Configuring styles&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;automatically-refreshing-the-browser&#34;,&#34;text&#34;:&#34;Automatically refreshing the browser&#34;,&#34;title&#34;:&#34;Automatically refreshing the browser&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;compiling-assets&#34;,&#34;text&#34;:&#34;Compiling assets&#34;,&#34;title&#34;:&#34;Compiling assets&#34;},{&#34;depth&#34;:3,&#34;slug&#34;:&#34;configuring-your-layout&#34;,&#34;text&#34;:&#34;Configuring your layout&#34;,&#34;title&#34;:&#34;Configuring your layout&#34;}]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;deploying-to-production&#34;,&#34;text&#34;:&#34;Deploying to production&#34;,&#34;title&#34;:&#34;Deploying to production&#34;,&#34;children&#34;:[{&#34;depth&#34;:3,&#34;slug&#34;:&#34;using-a-production-ready-storage-disk&#34;,&#34;text&#34;:&#34;Using a production-ready storage disk&#34;,&#34;title&#34;:&#34;Using a production-ready storage disk&#34;}]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;publishing-configuration&#34;,&#34;text&#34;:&#34;Publishing configuration&#34;,&#34;title&#34;:&#34;Publishing configuration&#34;,&#34;children&#34;:[]},{&#34;depth&#34;:2,&#34;slug&#34;:&#34;upgrading&#34;,&#34;text&#34;:&#34;Upgrading&#34;,&#34;title&#34;:&#34;Upgrading&#34;,&#34;children&#34;:[]}])" 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' ? &#34;text-butter translate-x-1&#34; : &#34;hover:text-gray-600 dark:hover:text-white hover:translate-x-1&#34;">
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

Comments
 (0)