mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
585 B
585 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Encrypted casts can use unique model-derived keys | 1542863733004767234 | weekly-thread-2022-26 | mattkingshott |
|
2022-07-01T13:32:33+00:00 | encrypted-casts-can-use-unique-model-derived-keys |
🔥 #Laravel Tip:
The default encryption cast for Eloquent models uses the app key, making rotation difficult and allowing anyone with key to decrypt all the DB. To address this, consider creating a custom cast that uses the model to create its own unique key.