morty
morty
FFilament
Created by morty on 1/21/2025 in #❓┊help
Is there a way to evaluate this immediately without returning a closure?
ah gotcha, ya I didn't think of that
4 replies
FFilament
Created by morty on 1/21/2025 in #❓┊help
Is there a way to evaluate this immediately without returning a closure?
Probably more of a PHP question than a Filament one but thought i'd ask anyway
4 replies
FFilament
Created by morty on 1/9/2025 in #❓┊help
Dependent select without parent being saved to the database
it's a belongsToThrough
6 replies
FFilament
Created by morty on 1/9/2025 in #❓┊help
Dependent select without parent being saved to the database
This is for the location_id field though which doesn't technically have a belongsto relationship
6 replies
FFilament
Created by morty on 1/9/2025 in #❓┊help
Dependent select without parent being saved to the database
No description
6 replies
FFilament
Created by morty on 1/9/2025 in #❓┊help
Dependent select without parent being saved to the database
To clarify, this is what it looks like when I edit the WorkOrder
6 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?
Not ideal but it got the feature rolled out and I can improve on it when I have more time.
33 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?
No, I ended up just using the included file upload field and not allowing multiple file uploads at the same time.
33 replies
FFilament
Created by morty on 12/3/2024 in #❓┊help
Is the Filament\Forms\Components\Group component documented anywhere?
Great thanks for the answer.
5 replies
FFilament
Created by morty on 11/29/2024 in #❓┊help
How can I disable global search for a resource while still setting a `recordTitleAttribute`?
err never mind. Looks like I can set the protected static bool $isGloballySearchable = false; property.
3 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`?
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