Skip to content

[Bug]: Actions not handling correctly Encrypted fields #110

Description

@jeffersonsouza

What happened?

I have some fields in my database that I use the native model cast property to define that he field should be dynamically encripted by laravel. In my Filament 4 tables, forms, infolists I can see that the information gets decrypted automatically when the view is rendered, but that is not happening when loading the event information with the Calendar plugin after the onEventClick event. The modal window open but with the information still encrypted.

How to reproduce the bug

class Appointment extends Model {
    protected $casts = [
        'something_secret' => 'encrypted',
    ];
}

Then in a Widget class:

class AppointmentsCalendarWidget extends CalendarWidget {
    ....

    final public function appointmentSchema(Schema $schema): Schema
    {
        return $schema->components([
            TextInput::make('something_secret'),
        ]);
    }
}

Package Version

2.0.2

PHP Version

8.3

Laravel Version

12.30

Which operating systems does with happen with?

macOS

Notes

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions