Skip to content

Conversation

@Roardom
Copy link
Collaborator

@Roardom Roardom commented Jul 17, 2025

Should be ran after rotating the app key.

Depends on #4833.

I debated on hard-coding:

  • the table string literal and column string literals,
  • the model class-string and column string literals,
  • the model class-string and magically figuring out which columns are castable as encrypted
  • reflection to find all encrypted columns

I decided on the second option, for the type usage and less magic, although I'm not opposed to the last 2.

The query uses the query builder and not eloquent for less overhead.

@Roardom Roardom force-pushed the laravel-rotate-encrypted-columns branch 3 times, most recently from 64aca4a to 7a775c1 Compare July 17, 2025 10:16
Should be ran after rotating the app key.
@Roardom Roardom force-pushed the laravel-rotate-encrypted-columns branch from 7a775c1 to b241330 Compare July 18, 2025 09:10
@HDVinnie HDVinnie added the Stale label Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants