morty
morty
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
enable polling on your table and see if it continues to work
9 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
because polling wont have access to the request()->route()
9 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
it might have been with the polling
9 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
I ran into so many issues with this I just abandoned it. I forget what they were now but it was briefly working then ran into other issues.
9 replies
FFilament
Created by Alnuaimi on 9/11/2024 in #❓┊help
What is the Best Way to Encrypt a FilamentPHP Project for Local Deployment?
why dose not free?
8 replies
FFilament
Created by morty on 9/10/2024 in #❓┊help
Tailwind CSS: Unhandled exception: require() of ES Module
Thanks, I ended up fixing it by invalidating PhpStorm caches. All good now!
4 replies
FFilament
Created by morty on 9/4/2024 in #❓┊help
What does `->evaluate()` do?
Awesome, I'll check that out. Thanks.
5 replies
FFilament
Created by morty on 8/28/2024 in #❓┊help
Make field read-only but also styled as if it was disabled?
TextInput::make('country')->disabled()->dehydrated()
6 replies
FFilament
Created by morty on 8/29/2024 in #❓┊help
Added colour not working
By "inside filament stuff", do you mean like this or something else?
Tables\Columns\TextColumn::make('pivot.category.name')
->label('Category')
->badge()
->color(function (string $state, Account $record): string {
return match ($record->pivot->category->colour) {
'red' => 'red',
'orange' => 'orange',
'yellow' => 'yellow',
'green' => 'green',
'blue' => 'blue',
'purple' => 'purple',
'pink' => 'pink',
default => 'gray',
};
}),
Tables\Columns\TextColumn::make('pivot.category.name')
->label('Category')
->badge()
->color(function (string $state, Account $record): string {
return match ($record->pivot->category->colour) {
'red' => 'red',
'orange' => 'orange',
'yellow' => 'yellow',
'green' => 'green',
'blue' => 'blue',
'purple' => 'purple',
'pink' => 'pink',
default => 'gray',
};
}),
8 replies
FFilament
Created by morty on 8/29/2024 in #❓┊help
Added colour not working
Thanks. I do have a custom theme setup but these are published vendor views. Do I just need to add ./resources/views/vendor/**/*.php to my tailwind config?
8 replies
FFilament
Created by morty on 8/28/2024 in #❓┊help
Make field read-only but also styled as if it was disabled?
Never mind, I read the documentation for the read only field but the answer was on the documentation for the disabled field. Solution was to use ->dehydrated.
6 replies
FFilament
Created by ingmontoya on 12/20/2023 in #❓┊help
navigationParentItem
No description
20 replies
FFilament
Created by morty on 8/27/2024 in #❓┊help
If I want to extend a form component to my own class, where do I do this?
Gotcha, thanks!
5 replies
FFilament
Created by morty on 8/24/2024 in #❓┊help
AttachAction select different relationship?
Never mind, found it in the documentation. Just needed better keywords for the search 😄 https://filamentphp.com/docs/3.x/panels/resources/relation-managers#unconventional-inverse-relationship-names
3 replies
FFilament
Created by ingmontoya on 12/20/2023 in #❓┊help
navigationParentItem
That worked! Thanks!
20 replies
FFilament
Created by ingmontoya on 12/20/2023 in #❓┊help
navigationParentItem
Is this documented anywhere or am I doing it wrong? I commented it out on the child resource.
20 replies
FFilament
Created by ingmontoya on 12/20/2023 in #❓┊help
navigationParentItem
Hmm, I commented out the $navigationIcon but it still hides and doesn't render with the line.
20 replies
FFilament
Created by ingmontoya on 12/20/2023 in #❓┊help
navigationParentItem
Bump, I'm looking for a solution as well.
20 replies
FFilament
Created by morty on 8/21/2024 in #❓┊help
Spatie Media Library plugin - How to get it to work inside a ManageRelatedRecords page?
Thanks, I'll probably do that but will be another day
30 replies
FFilament
Created by morty on 8/16/2024 in #❓┊help
Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?
I was getting away with this for a while until I realized it doesn't work with table polling. I'm assuming because the way requests work in livewire and ajax not having the url parameter anymore. If anyone knows of a way to get the resource record let me know. Because the function is static, I can't use $this->getOwnerRecord()
9 replies