morty
morty
FFilament
Created by Myster on 3/24/2025 in #❓┊help
Hello, can Filament be used for a client area, or is it really just for an administration interface?
We currently use it for both a customer portal (w/multi-tenancy) and a full-featured internal application (CRM+more).
7 replies
FFilament
Created by anjama on 3/25/2025 in #❓┊help
Making searches universally case insensitive for Postgres
Regardless, you can either do this via a macro, or it looks like there is a ->forceSearchCaseInsensitive() method you can add.
4 replies
FFilament
Created by anjama on 3/25/2025 in #❓┊help
Making searches universally case insensitive for Postgres
Can you give an example of one that you're overriding currently?
4 replies
FFilament
Created by morty on 3/12/2025 in #❓┊help
Is it possible to pass the parent record to the gate of a relation manager?
This is what I ended up doing on the relation manager. There are several canAction methods on the relation manager and I override the one's I need. Not sure if this is the best way to do this though but it works.
protected function canCreate(): bool
{
return Gate::allows('create', [$this->getTable()->getModel(), $this->ownerRecord]);
}
protected function canCreate(): bool
{
return Gate::allows('create', [$this->getTable()->getModel(), $this->ownerRecord]);
}
6 replies
FFilament
Created by morty on 3/12/2025 in #❓┊help
Is it possible to pass the parent record to the gate of a relation manager?
Interesting, filament actually isn't checking a create method on the WorkOrderNotePolicy but rather on the WorkOrderPolicy. This is weird.
6 replies
FFilament
Created by morty on 3/12/2025 in #❓┊help
Is it possible to pass the parent record to the gate of a relation manager?
Another use case would be making sure noone can create a note on locked work orders.
6 replies
FFilament
Created by morty on 2/11/2025 in #❓┊help
Spatie Media Library Plugin black screen on upload of some files
Sorry, just seeing this now. How are you previewing the files, are you using the form component or an infolist component?
8 replies
FFilament
Created by morty on 3/5/2025 in #❓┊help
Has anyone successfully parsed the rich editor/trix field from the raw data in the database?
Thanks guys.
7 replies
FFilament
Created by morty on 3/5/2025 in #❓┊help
Has anyone successfully parsed the rich editor/trix field from the raw data in the database?
No it looks like this:
<div>Head Bearing: NTN P310 (UC 310-115)<br><br>Drive belt: 2 x B55<br><br>Chain: 81X<br><br>Gearbox: Browning 107 (serial # G02K)&nbsp;<br>107SMTP35<br>Ratio-34.87<br>Sheave- 2B 3.4 SH<br>Bushing- SH 3/4<br><br>Motor: 1.5HP<br>Frame- 145T<br>Sheave- 4 1/2 OD<br>Bushing- 7/8<br><br>Guide rollers:<br>3/4" threaded rod 11" long<br>UHMW rollers 2 1/2" long 2" OD<br>2 locking collars&nbsp;<figure data-trix-attachment="{&quot;contentType&quot;:&quot;image/jpeg&quot;,&quot;filename&quot;:&quot;sortex.jpg&quot;,&quot;filesize&quot;:167734,&quot;height&quot;:2312,&quot;href&quot;:&quot;/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg&quot;,&quot;url&quot;:&quot;/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg&quot;,&quot;width&quot;:1734}" data-trix-content-type="image/jpeg" data-trix-attributes="{&quot;presentation&quot;:&quot;gallery&quot;}" class="attachment attachment--preview attachment--jpg"><a href="/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg"><img src="/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg" width="1734" height="2312"><figcaption class="attachment__caption"><span class="attachment__name">sortex.jpg</span> <span class="attachment__size">163.8 KB</span></figcaption></a></figure></div>
<div>Head Bearing: NTN P310 (UC 310-115)<br><br>Drive belt: 2 x B55<br><br>Chain: 81X<br><br>Gearbox: Browning 107 (serial # G02K)&nbsp;<br>107SMTP35<br>Ratio-34.87<br>Sheave- 2B 3.4 SH<br>Bushing- SH 3/4<br><br>Motor: 1.5HP<br>Frame- 145T<br>Sheave- 4 1/2 OD<br>Bushing- 7/8<br><br>Guide rollers:<br>3/4" threaded rod 11" long<br>UHMW rollers 2 1/2" long 2" OD<br>2 locking collars&nbsp;<figure data-trix-attachment="{&quot;contentType&quot;:&quot;image/jpeg&quot;,&quot;filename&quot;:&quot;sortex.jpg&quot;,&quot;filesize&quot;:167734,&quot;height&quot;:2312,&quot;href&quot;:&quot;/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg&quot;,&quot;url&quot;:&quot;/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg&quot;,&quot;width&quot;:1734}" data-trix-content-type="image/jpeg" data-trix-attributes="{&quot;presentation&quot;:&quot;gallery&quot;}" class="attachment attachment--preview attachment--jpg"><a href="/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg"><img src="/storage/attachments/njgb4sKGkNUvqcSsmDu2G8iBwFSC6Q1V0v7BoQlL.jpg" width="1734" height="2312"><figcaption class="attachment__caption"><span class="attachment__name">sortex.jpg</span> <span class="attachment__size">163.8 KB</span></figcaption></a></figure></div>
7 replies
FFilament
Created by morty on 3/3/2025 in #❓┊help
How can I aggregate a field on a pivot table with TextColumn->sum()?
No description
3 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
Everything is working speedily! 😄 thanks.
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
Solved. I put the extra attributes on a form group component: Forms\Components\Group::make()->extraAttributes()->schema([])
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
I tested extraModalWindowAttributes with a test attribute and it works so it appears that because there is already an x-data attribute on the modal, it doesn't add the custom one.
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
I tried using extraModalWindowAttributes but that doesn't add anything.
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
Not sure how to overcome that
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
No description
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
No description
12 replies
FFilament
Created by morty on 2/27/2025 in #❓┊help
Is there a way in Filament to calculate a field on the client side without Livewire? AlpineJS?
exactly what I'm looking for thanks 😄 I'll go add this and report back.
12 replies
FFilament
Created by morty on 2/26/2025 in #❓┊help
Can't seem to globally change the AttachAction modal width?
Hmm, after looking at the configureUsing method, it appears there is an isImportant parameter that I can set to true which solves my issue.
3 replies
FFilament
Created by morty on 2/12/2025 in #❓┊help
Confused about form grid columns and column span.
Figured it out. On the Section component itself is the following:
protected function setUp(): void
{
parent::setUp();

$this->columnSpan('full');
}
protected function setUp(): void
{
parent::setUp();

$this->columnSpan('full');
}
3 replies