Relative Content

Tag Archive for laravellaravel-filament

Auditing relationship models in Filament 3

I have set up an AuditRelationsManager Resource setup in Filament 3 to audit changes to the Receipts model however the Recipts also have Comments and Attachments that I would like to Audit also. Both have been setup as Relations that show up on the Recipts List & Edit view.

how to write this code in latest version of filament?

public static function getRelations(): array { return [ RelationsHasManyThroughRelation::make(‘taxonomies’) ->recordTitleAttribute(‘name’) ->filterByRelationQuery(function ($query) { $query->whereNotNull(‘type_of’); }), ]; } I need the code in its latest version. This is a part of code from AI. laravel laravel-filament 1

How to hide the delete icon from a specific item or a Repeater of laravel filament?

I’m building a dashboard using the filament library and I’m liking it so far. I have a repeater that allows me to add new languages to the app and I want to hide the delete icon if the current item is the default language. According to the documentation, the delete icon is controlled with the ->delectable() method. So basically I need to check if the current item value is different than the default language but I’m unable to get the current item value: